Answer Questions
EW SHFileOperation, copy a file in the same folder
hi, I want to copy a file in the same folder just as on the PC.For example, I want to copy the C:\11.bmp , so the inFile is C:\11.bmp and I replace the outFile with C:\copy_11.bmp, but then SHFileOperation failed ruturn 1 . fileop.hwnd = this->GetSafeHwnd(); fileop.wFunc = m_wFunc; fileop.pFrom = inFile; fileop.pTo = outFile; f ...Show All
Hyperiest floating point vector optimization
Hello code gurus, I'm a recent arrival form the CodeWarrior PPC world, and hope someone can orient me toward the appropriate docs and examples. I need to do some floating point (double preferred) operations on vectors, basic ones like vector +,-,/, *, sqrt, dot product. Vectors are sized at runtime and don't change once created. I've read about hardware SIMD instructions and want to use these. 1) Do I need to use the SIMD instructions e ...Show All
Martin_Smith .NET 2.0 and Visual Studio .net 2003
I have visual studio .net 2003 installed, and I recently upgraded to .net 2.0 I can no longer compile applications without an error durring linking from alink.dll. Any help is greatly appreciated. B_a_s_i_c wrote: I had to uninstally .net 1.1 in order to get 2.0 working properly... I wasn't aware the two could co-exist Is there an upgrade I can use so I don't get the error with .net 2.0 ...Show All
KJV convert int to string
Hi, I want to make the following code work but I can't find a method to convert the int to a string. Any ideas string ErrorMessage( int intRec, string strKey){ return (DateTimeStamp()+ char (7) + "Record number" + char (7) + intRec+ char (7) + " contains an invalid Key:" + char (7) + strKey+ ".\n" ); } Yep, you're right; my statement is incorrect. There is a string::operator+ that ...Show All
Zamma Internal manifests vs external manifests
I am converting a straight Windows MFC app from VC6 to VC8. The app has 2 exe files and about 75 DLLs. It looks like manifests are a new concept I need to deal with. I've been reading a lot about them at the MSDN site and in these forums. But I haven't read about the advantages/disadvantages (or requirements ) of having the manifest embedded in the EXE/DLL versus having them in external files. Having them ...Show All
Libor Vasa Unresolved Token and other link errors when migrating from VC++ 2003 to VC++2005 Express
Hello all, Here is the situation. I am migrating an existing solution from Visual C++ 2003 to Visual C++ 2005 Express. I have the Platform SDK installed as well. The solution contains two mixed mode projects. One is essentially a managed wrapper dll for a 3rd party static win32 library. I do not have access to the source for the 3rd party library. The other project is a managed executable that utilizes the wrapper dll. These proje ...Show All
agrogers WM_KEYDOWN
Hello, I am looking for some help on making a program that will give me the number for each key. I known that I need to hook the keyboard first, and I have that code. Now, from there I am oblivious as to what I need to do next. Any refrences or sample codes would be great. Thanks. Note: Win32 API is what was writing this in. If I can possibly stick to that, it would be great. Thank you. (This is NOT for a homework assignment, instead I was curio ...Show All
natanz obtaining callstack level in c++
Is there a way to get the callstack level in c++ for example, take the following code: void call3() { //callstack level would be 3 } void call2() { //callstack level would be 2 call3(); } int main() { //callstack level would be 1 call2(); return 0; } And I don't mean obtaining it from using a debugger and looking at the callstack. I'm mean obtaining it programmatically. Look at the buglayer utility from John Robbins. Th ...Show All
Paul Stubbs debug question with an executable file
Hello, I have made a dll project and tried to debug it with an executable file called CANoe32.exe which I have specified in the preperty settings. Whenever I start the debug a window popup with the error information "CANoe32.exe doesn't contain debug information(no symbols loaded) ". If I choose "cancel" the output window gives the following information " load CANoe32.exe no symbol loaded" "loa ...Show All
paopaop Datasets, datarows oh my
Good evening experts: Would you happen to have any online reference material, perhaps an article or coding sample, that provides the general idea of working with datasets in vc++ 2005 I've found numerous examples with 2003, but it appears that the syntax has changed so those examples are working. I like New DataSet Features in Visual Studio 2005 ; but, there's also TableAdapters in Visual Studio 2005 , ...Show All
realview partial class how-to?
hi, i have been looking at the microsoft help files and how-to's with no luck on finding how to create a partial class. I need to create a partial class for a datatable i am using. the first information i found just didnt work at this location in the help file... ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_raddata/html/dfbc21eb-7ea2-4942-addd-49677f5493be.htm the link on that page to the partial class definitions also didnt work when ...Show All
KombatNT iostream.h
Ciao a tutti, sto provando a usare visual c++: ho creato un'applicazione console con il seguente sorgente: // // PRIMO.CPP // Il primo esempio in C++ // #include <iostream.h> main() { cout << " CIAO MONDO! "; return (0); } Ma compilando mi da errore: dice che non puo includere il file iostream.h Io pensavo che le librerie venissero trovate in automatico. Cosa devo impostare grazie ciao:) ...Show All
Toly Menn Linker errors in VC++ 8.0
I am trying to convert a VC++ 6.0 project to VC++ 8.0 (VS 2005). I received the following linker errors after succesfull compilation. Linking... libcmt.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(char const *)" ( 0bad_cast@std@@QAE@PBD@Z) already defined in liclib.lib(integer.obj) libcmt.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const & ...Show All
Chris Z. Issue with '__asm' in 64-bit architecture.
I am currently working on porting my application to a windows 64-bit machine. I am facing a compilation error as follows: : error C4235: nonstandard extension used : '__asm' keywor d not supported on this architecture : error C2146: syntax error : missing ';' before identifier 'eax' I wanted to know if there is a corresponding replacement for __asm keyword on windows 64-bit or any other work-around to get my compilation done. Is there any ...Show All
margaret lenins carter Graphs in VC++
I'm trying to draw a Graph within a Dialog Box and Without using an ActiveX. I have tried to use a CStatic control or Custom control unsuccessfully. I have tried to use a CDC object and attached the pointer on CWnd from my control but i don't manage to make it display anything. It is written in MSDN that i Should use OnDraw() to recover the right DC pointer but no Control release this event. Am i trying to do something impossible I guess n ...Show All
