Hi I think your code have to work. Only a question, Have you create the console app with MFC options? David Leyva
David Leyva
Posts
-
Socket Programming -
What is the handle count for a process in windows?Hi The Handle count for a process is the total of handles used: Thread, opened files, events. I think u know that the function to get HC is GetProcessHandleCount. U have to be carefully if your app have HC that never decreases Regards David Leyva
-
Problem with ODBC connectionHi Only for test purposes try to change the location. I guess that file is in a network path. Regards David Leyva
-
application not executing!Hi You check the program dependencies?? Regards David Leyva
-
Convert static lib to import lib/DLLHi I know that there are some products that convert DLL to lib, but in your case I think you rigth with your idea. The steps could be the following: 1. Build a new dll project in vs2005. 2. In your stdafx.cpp add #pragma comment(lib,"mylib.lib") 3. Include your .lib header file in the project. 4. Declare the new functions, maybe with new names. I expect this steps help you Regards David Leyva
-
"synchronized" method call in dllSorry, but I think that is not a good idea put a Global var in a header file. Put all global vars in the cpp file. In the header file only function ptototypes. Regards David
-
"synchronized" method call in dllAnother idea is replace current sync code instead a simple critical section. You have to init cs in DllMain I think that should work and is simple. David
-
"synchronized" method call in dllHi I think the reason is that in the first case (var in header) initiation is only one time execution, but in the second case depends on dll instance. I think your variable have to be static, try that way Regards David
-
ActiveX ProblemHi Everyone Well, I have a silly problem. I made an ActiveX for Windows CE 4.0 using VS2005 and I can call methods and set/get properties but the code related with that functions never was executed. At the begining I can't call methods because I had problems with IObjectSafety interface. I tried everything and now I am pretty frustated. The problem I think is weird maybe I am doing something wrong. Thx for the help or some advices PD. Sorry for my english :) David Leyva
-
RegSvr32 failedHi I think the problem is the COM (dll) dependencies, maybe your COM has references to another dll that doesn't not exist in target pc. You can see referencias with Dependency Walker (Visual Studio Tools) David Leyva
-
Fast keyword Search through CSortedArray?? anyone?Hi You can use a Thread to process a binary search. The when search finish you can select or show the item(s) David