Found my error. A simple bug in some other lib i used. But, i could find it after i added breakpoints to ALL the functions used in the solution. Is there any simple way to debug an application from the first instruction?
Boaz V
Posts
-
MFC application does not open up -
MFC application does not open upNo help. Pressing f10 or f11 does not reach anywhere. Again, it seems it starts (the layout of the VS changes) and it immediattly returns with return number 0xff.
-
MFC application does not open upNope.
-
MFC application does not open upI've put a breakpoint in that function. Does not reach there.... debuger did not stop there.
-
About database in vc++ : Plz Help : urgentCheck out this link: http://www.codeproject.com/database/expressodl.asp it's quite helpfull
-
How to change the Icon of my EXE ?Try importing the ICO file into the 'Resource' view in the visual c++ program. Make sure you remove the MFC default icon from that 'Resource' view.
-
MFC application does not open upHi, After changing alot of code in my MFC application, it is no longer opens up. Compile has no errors or warnings. It seems that the program DOES load, but exit immediatly. Any idea where to look for? Any idea where i can put a break point to help me catch it? How to define an entry point?
-
error C2664 with InterlockedExchangePointerThis is the right way to do it: void** arg = static_cast(static_cast(&mQ_waiting_for_write)); InterlockedExchangePointer(arg, new_Q); or shorter: InterlockedExchangePointer((void**)&mQ_waiting_for_write, new_Q);
-
error C2664 with InterlockedExchangePointerI'm moving from VC6 to VC2003 and from multi-byte to Unicode. After fixing all the errors related to unicode, i ended with an error i can not resolve. ************ error C2664: 'InterlockedExchangePointer' : cannot convert parameter 1 from 'T ** ' to 'void ** ' with [ T=MyClass ] Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ******************** The code is: *************** MyClass * mQ_waiting_for_write; InterlockedExchangePointer(&mQ_waiting_for_write, NULL); ************** Any ideas what is the problem?
-
How to initialize _TCHAR arrayThanks. It was the correct way to do it (using the _T macro). anyhow, now i have another problem. i have double variables which i want to turn to strings. but the _GVCT function gets only 'char*' buffer. is there any _UNICODE replacement?
-
How to initialize _TCHAR arrayHi, i'm looking for a way to initialize a static array of _TCHAR elements. I've tried the following code in the StdAfx.h file. //BEGIN OF CODE static const _TCHAR * enDayOfWeek_DaysStrings[] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturady" }; //END OF CODE When _UNICODE is not defined, it works great. But when _UNICODE is defined, i get a compiler error: "error C2440: 'initializing' : cannot convert from 'const char [7]' to 'const _TCHAR *'. Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast" Any ideas?
-
Local website proxyingHi. It sounds like this is want i needed. could you point me to a nph-proxy's website? or some place which i can download the cgi code and find some HOW-TO docs. thanks
-
Doing LIKE for a numeric columnHello, In my table i have a column of type "bigint". i want to support two kind of filtering on that column. a "value" filter (>,<,=). and a "starts with" filter (i.e. "LIKE '44*'"). the first one is quite easy :) the second is unknown to me.... (i don't want to do it programmatically). any ideas?
-
Local website proxyingHi, i have two web servers running on my machine. 1)IIS on port 80. 2)WebMail on port 8080. have its own web server, and can not run under iis. i want to access my webmail through IIS. i was thinking about writing a very simple proxy which will redirect my requests from the iis to the the webmail and its responses back to me. can it be done? i think that it can, aren't proxies doing that very thing? please help. thanks
-
ASP.NET drag and drop helpMaybe a JavaScript supplement is needed?
-
ASP.NET drag and drop helpHello, i'm looking for a tutorial about how to use Drag and Drop functions in an aspx page. i.e., a list view, which can have files or images or even text droped into it. thanks
-
what is the different betweenHi, this is from MSDN: "The string type represents a string of Unicode characters. string is an alias for System.String in the .NET Framework." so, it's the same :)
-
Run external program and waitHi, How can i run an external program (some .EXE program) from my c# program, wait till this program ends, and then continue the c# program? ideas?
-
Crystal Reports deployment. Missing Keycodev2.dllHello, i'm trying to deploy a web application which includes Crystal Report features. i've created a Web Setup project which deploys this web application. i've installed it on the machine i've programed the web application on, and it worked great. I've installed it on a new machine (a new computer, Windows2k + IIS + .NET framework), and had no problems, but when trying to start the website, it fails! after some reading around the web i've, copied all the Crystal*.dll files from my computer into the assembly\GAC directory in the new computer. now the website works, but the Crystal Reports features does not! when openning a page with Crystal's objects, i get an error: "Can't find Keycodev2.dll" any ideas?
-
IDisposable, destructors and loaded assembliesHi, in my program, at the constructor of the main driver class, it loads about 6 DLLs (managed) using the Assembly.LoadFile method and then invoking the needed methods using reflections functions. Anyway, when i want to quit the program, sometimes some of the dlls can not be accessed since "they are in use by another program". I've checked the Windows Task Manager and my process do not appear there... any ideas guys? i thought maybe using Dispose procedure or a destructor. can anyone help me with deciding which road to take? and how? 10x