Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by EngineersForge

  1. EngineersForge

    LCD with fast refresh rate?

    I am looking for LCD modules about 64 x 128 pixel that have fast refresh rates. If anyone knows of any, especially if they have the SED1565 driver, could ;you let me know? Thx, MK
  2. EngineersForge

    SED1565 LCD controller

    I am trying to interface a cog lcd sed1565 driver to a pic18f8xxx series mcu. If anyone has any good, general schematics and/or sample code, wich would speed-up my process I'd be very thankful.
  3. EngineersForge

    Trying to create a single global object

    Hello, How does one create a single global object that cannot be minipulated in any way? It has to be created immidiatly when the main process starts and must not be used to create more of the same type (refering to class types)? I was thinking there is a way through the defualt constructor...
  4. EngineersForge

    parallel port access under winXP

    Is there anyway to access the parallel port from vc 6 or vc.net without having to have to buy kernel mode .dlls. I would think one should be able to use the win32 api? tanx
  5. EngineersForge

    still no seccuss??? (function pointers)

    Sorry, yes I did change the code in the copy constructor. I had that originally, I was just trying different ways. This is what happens. I know what is right, but I start to doubt myself when I can't get it to work. Whatever the case it does work now. The pointer has to be released first. That...
  6. EngineersForge

    still no seccuss??? (function pointers)

    Well this is interesting. when I add: Foo.fpReqSer = NULL; in: Foo.fpReqSer = &Service1; Foo.RequestService();//works just fine Foo.fpReqSer = NULL; //new code b Foo1(Foo); Foo1.RequestService();//works just fine Can't hold multiple references to a global function. Is it a threading question?
  7. EngineersForge

    still no seccuss??? (function pointers)

    Ok thank you for the samples; however, I am still at a loss. Here is another attempt: calss a { public: void (*fpReqSer) (void); void RequestService(void); }; void a::RequestService(void) { //raise event fpReqSer(); } NOW class b: public a { whatever... }; NOW void...
  8. EngineersForge

    Function pointer problem as an event

    Ok thank you for the samples; however, I am after something else. I don't wish to use an event object until later. As for the code by IonFilipski, I have to be honest, I have no idea. To cryptic. Here is another attempt: calss a { public: void (*fpReqSer) (void); void RequestService(void); }...
  9. EngineersForge

    Function pointer problem as an event

    First of all, thank u all for the help so far! It is very quick and right on the money. Now, I wish to use a function pointer as an event raised by a class type inherited by another. This is in a basic console, single thread for now as I am just testing the class hierarchy. I have one public...
  10. EngineersForge

    Is has to be possible!

    Yes that works. It seems obvious now. Set the pointer to the zero columm and zero row. Of course, now the question is, how do you access the strings with the pointer? More to the point, what does the array look like in memory with COLUMN = 15 ROW = 30 tanx
  11. EngineersForge

    Is has to be possible!

    I cannot set a pointer to a multi-dementional array such as: const string sTable[ROWS][COLUMNS]; trying: string sp* = &sTable; does not work. trying: string &sr = sTable; does not work. I have attempted different loops using the new operator to no success also. Is their not a way to...
  12. EngineersForge

    RE: CreateProcess' first param. ApplicationName

    I can get the CreateProcess() to work well enough, but I don't know what the first parameter to it is. What is a module name; the executable's name is not working??? It does work for the second parameter to the CreateProcess () however.
  13. EngineersForge

    WIN API CreateThread(<too long to list>)

    Thanks for the info. Well me get this right; one creates a type and passes it to the thread creating function where it must be type-cast to a void pointer. The new thread receives the pointer that is now pointing at an address that has data in it, but does not know the bounds of the data. So one...
  14. EngineersForge

    WIN API CreateThread(<too long to list>)

    Yes those are very good points I will most definitely consider in the future. However, I was looking for an explanation as to why the fourth parameter (which is the parameter to the new thread) has to be type cast to void*. I realize it is a type LPVOID, so do you not lose all the data the...
  15. EngineersForge

    WIN API CreateThread(<too long to list>)

    Could someone please point me in the right direction? I need to find detailed documentation, beyond Platform SDK, on the CreateThread (), especially how it passes the single parameter to the instantiated Threadproc (). Many thanks.

Part and Inventory Search

Back
Top