Answer Questions
LS_ Pass value through VB Scripting in VC++
Hi , How to get the pass the value from VB scripting to VC++ i got my scripting done completely in VC++.. it works cool.. now i need to pass a value to VC++ through scripting. how to do it Thanks Martin Richter!! thanks a lot.. u r doing a great job ..... will try the stuff u gave and get bact to u soon with the result. thanks, http://www.codeproject.com/wtl/atlscripthost.asp http://www.codeproject.com/ ...Show All
goldandwhite image.h,imgio.h and etc...
Hay Everybody Now a days I have experienced working on C++ in VS.Net 2003. But i could not able to find out header files like image.h, imgio.h. and because of this i am not able to use function like image_alloc(), IMAGE and so on. Actually i want to read image files including TIFF and many other formats and want to do some manipulation and write the output in the another image file Can any body tell how can i do this Thnaks I ...Show All
Inray VS2005 debug CRT does not report file/line info for heap corruption
Hi hyslopc! I just ran a test of the VS 2005 beta 2 debug CRT library _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_DELAY_FREE_MEM_DF | _CRTDBG_CHECK_EVERY_1024_DF | _CRTDBG_CHECK_CRT_DF); char * Test = new char [3]; Test[3] = '\0' ; // Cause memory corruption delete Test; This results in a dialog box being shown which says that a heap overwrite occured with allocation ...Show All
Alexon How to change owner of a process or thread?
Hi, I have a Windows Service that run with SYSTEM user. When i create a new process in this process (using ShellExecute function) the new process got SYSTEM privilege too. I want it'll run as current user privilege. How can i done Any help Hieu I am not sure what AssocQueryString returns for this. But the registry shows the executable that has to be started in the Command entry in the registry. I have no other idea, that you start the pro ...Show All
prash123 ATL project upgrade -> error LNK2005: xxxx already defined in atlmincrt.lib (atlinit.obj)
I've recently upgraded an ATL project from VS2002 to VS2005. It compiles fine in Debug mode, but when I attempt to compile in Release mode I get link errors. Can anyone help me please Linking... LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in atlmincrt.lib(atlinit.obj) LIBCMT.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in atlmincrt.lib(atlinit.obj) LIBCMT.lib(tidtable.obj) : error LNK2005: _ ...Show All
Krystof reference binding
I already submitted a bug on that but nevertheless i want to know if other users met that problem. Although Beta1 was conformant on that point in Beta 2 you can write something like this: struct X{ X(){} X(X&){} }; int main{ X& ref_to_X=X(); X(X()); return 0; } (etc more detail on the bug report) that is non standard compliant(a rvalue must be bound ...Show All
maakus Excel Chart in MFC Dialog
I have been researching this for some time without much luck, so I am hoping to find someone to point me in the right direction! I have a program that displays outputs as graphs in MFC dialogs. Right now, I write the code to draw the graphs, but I think it would be much better if I could display it as an excel chart. I have found ways to automate Excel, but I don't want the user to need to have Excel running when they use my program. What ...Show All
Phil Atkin VC++ 2005 doesnt compile, when non-startup project header is changed...
I have five projects in my solution. First four creates static lib and the fifth is exe file that uses those libs. The fifth project is set as startup and dependent to others. Whatever file (cpp, h) is changed, compilation occurres after F5 (build project) is pressed. I can also change something in cpp of the dependent project and it is also compiled. The problem are any changes in header files of dependent projects. VS just saves them, but writ ...Show All
SSDevTeam C++ Template problem with Visual Studio 2005 beta
<Roger C Garrett@discussions.microsoft.com> wrote in message news:ce13a80b-1b47-4687-b6f4-d617b16e17d4@discussions.microsoft.com > I'm trying to compile the source code for a MySQL C++ API (got it off > the www.mysql.com site). I'm using the very latest Visual Studio 2005 > beta, which implements the latest changes to C++, which means lots of > old code now breaks due to changes in the ISO C++ ...Show All
Mark Kenworthy - MSFT This application has failed to start because the application configuration is incorrect
Hi, I am just starting programming using Visual C++ 2005 Express Edition. I have had some limited practice in other languages and older versions of C++, so I have some idea whats going on but not much... Anyway I made a short program which perfroms a bubble sort on an array of numbers which the user enters (I know its nothing to write home about but its a start), it works fine on my PC and when I sent it to a freind who also had VC++ 2005 Expre ...Show All
awhite What do I need to include to make a Bitmap?
I'm using VC++2005 and I'm trying to make and save a bitmap for debugging. The statement: Bitmap myBitmap: gives error C2065 'Bitmap' : Undeclared identifier What do I have to include to identify Bitmap as a class After I get that done, what will I have to do to get Format32bbpArgb recognized Thanks, Ken It sounds like you didn't create a CLR project. Best thing to do: create a new projec ...Show All
TerryMcP Can C++ develop web-based applications?
Hi, All New to C++ programming. and have put resource in C++ and VC books and time learning it. But now I was told that C++ can not develop web based apllications. Is this true or some extensions of C++ can go around this limit I need develop a web-based database, so the users can input company names, location, phone numbers. etc. and the users can have a full text search on this database. Do I have to learn C# and and SQL to do this ...Show All
Your Neighbour _CRT_SECURE_NO_DEPRECATE has no effect
MSDN clearly states that if you define _CRT_SECURE_NO_DEPRECATE it "will disable deprecation warnings". I tried adding _CRT_SECURE_NO_DEPRECATE to the Preprocessor Definitions and #define _CRT_SECURE_NO_DEPRECATE to the code. In both cases I still get a C4996 warning from every single strcpy call. The only way to disable the warning, as far as I can tell, is to use #pragma warning (disable:4996) or add the warning to the C/C++ settings (Ad ...Show All
Studbolt vc++8.0 bug: access violation upon call of any CImageList methods
I have sucessfully imported and compiled a complex MFC 6.0 project from vc++6.0 into vc++ 8.0 (MFC 8.0). It contains several subprojects (libs and dlls). In vc++ 6.0 those project linked MFC6.0 statically and after I imported it to vc++ 8.0 I set the linkage of MFC8.0 to "shared". However when I try to compile and link the project in vc++ 8.0 in release mode (debugmode works fine) I get an acess violation in afxcomctl32.inl. This happnes w ...Show All
Dean Massey How do I stop "press any key to continue . . ." appearing in a console application?
I create an empty console project with Visual Studio 2005. I add one source file (Main.cpp) containing the following code: int main (int, char*) { return 0; } I produce a release build. When I run the executable the on Windows Server 2003, the cmd window displays this text that I did NOT program and do NOT want: press any key to continue . . . How can I get rid of this text (I want the cmd window to just disappear whe ...Show All
