Answer Questions
Tryst Calling C++/CLI dll from C#
I work on an app that controls a Canon camera in C#. Until now, I used a common C# wrapper for their SDK. They have a new SDK. So, I wrote a wrapper in C++/CLI. But, it stopped working, it gives an error : The specified module could not be found. (Exception from HRESULT: 0x8007007E). I found on my notebook that creating a vanilla C++/CLI dll with a simple method, and calling it from C#, compiles but gives this error. On my desktop, however, it works fine. So, I rebuilt the wrapper dll, and integrated it into my app. The same dll, with the same manifest file ( it's also got one embedded ), gives this error in my app, but runs in a very simple app ( which just calls the same methods ). I think the problem is WinSxS ( which has been an ...Show All
reddfan How to create threadsafe application in VC++?Getting error "SystemExecutionEngine".
I am developing an application in VC++.NET using Visual Studio .NET IDE. Application has a UI and worker thread. I am also using QF Framework. When application starts, it loads UI and starts worker thread. Worker thread deals with RS232 port. It sends/receives data over serial port. PC application generates requests at certain interval and writes it to serial port. On receiving response, worker thread updates it to UI control(RichTextBox). Application runs fine for 4-7 iterations and then fails with SystemExecutionEngine error .It runs for longer hours on certain windows machine and fails less than 4-5 minutes on some machine. When it crashes, it shows up in disassembly code at " NTWaitForSingleObj ...Show All
Ben Corneau PSDK/calc-sample, please.
Below is error when I try to build sample project: Calculator. I have VC++ express edition and sample is for that version of C++. I also have PSDK which I wanted to integrate with VC++ express edition by following instructions; but wanted to be sure VC++ express edition is working (which it is not) by using simple sample projects. Thank you very much for any assistance to get this sample project to run/compile. I plan to use VC++ instead of fortran for my research so I and other students/scientists may have a graphical user interface and ease of entering code. Assembly language was no fun but I got thru that. I would be grateful if anyone could point me to sample code to use in VC++ express edition (with PSDK integrated ...Show All
Chhaya cannot convert parameter from 'WCHAR [1024]' to 'LPSTR'
BYTE bu[1024]; GetVolumeNameForVolumeMountPoint(pspdidd->DevicePath, bu, 1024); I had follow the instruction to change the Character Set to "Multi Byte Character Set" But it still pop up with this error.. How is BYTE defined on your system Use TCHAR instead. Are you sure that the second param is the problem Could it be pspdidd->DevicePath What type is that Did you change the character set for all build configs (Debug, Release) -- SvenC ...Show All
Prasenna transmitFile()
I want to know how to use transmitFile() with memory-mapped files. thanks. The newsgroups at http://msdn.microsoft.com/newsgroups is a more proper place for such issues. OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Neotech internal compiler error (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537)
I'm getting the following error when trying to compile a C++ file in VS 2003 with SP1: fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537) It happens on the following line in my code: const char* p = "SomeText"; If I were to change this line to something like const char* p = "SomeOtherText"; then it would compile just fine. I've trying doing a complete rebuild, but the problem is still there. Any ideas what is going wrong That's pretty weird. Something like this must be very rare, and together with the fact this is VS 2003, you'll probably just have to change your code in whichev ...Show All
Ajaykr Napster Visual C++ Runtime Error
When starting Napster I now get an Error that says Microsoft Visual C++ Runtime Library Runtime Error Program E:\Program Files\Napster.exe The application has requester Napster to terminate in an unusual way. I have contacted Napster and re-installed it along with updating Media Player 10 and in line with other mentions on these forums I have deleted Google toolbar and Mozilla Firefox. I have AVG free and Zone Alarm as firewall and antivirus and i am running XP student with SP2. I have also deleted DivX video software and Itunes and run spyware tools, MS update and Ccleaner. I still get the above error. Can anybody suggest what has happened or what I may do to get Napster working again. Thanks Tony ...Show All
Option install sp1,then IDE error
hello ,everybody,when i installed sp1 later, i rebuild my project ,and the following error appear: -------------------------------------------------------- runtime error! program:..\common7\IDE\devenv.exe this apllication has requested the runtime to terminate it in an unusual way.please contact the application's support team for more informion. --------------------------------------------------------- my OS is english xp+sp2,what should i do yes,the only things you can that just uninstall sp1 and vs2005,I try the way that I deleted the program files\Microsoft Visual Studio 8 dir ,and add from setup program,but it's not effect.you must uninstall it first,and now I don't install sp1. I have the same probl ...Show All
Dale17677 if I need to output my .exe or dll and lib file into another directory,please tell me how should I change the project setting?
In vc2005, if I need to output my .exe or dll and lib file into another directory,please tell me how should I change the project setting Thanks you very much. Project Properties - Configuration Properties - General. Change Output Directory to whatever your need. ...Show All
Rykin Poe i am using a queue..i can push the values into the queue but while retriving the values,they are empty
i am using a queue..i can push the values into the queue but while retriving the values,they are empty the code i am using is placed below struct SRace { int n; int j; }; void CQueeDlg::test() { typedef queue<SRace*> SQueue; SQueue sque;//This is the queue SRace *oRace=new SRace;//This is a structure for(int i=0;i<2;i++) { oRace->j=i; oRace->n=i+1; sque.push(oRace); } oRace->j=0; oRace->n=0; oRace=sque.front(); delete oRace; } plz help me The problem is with your code. You are just keeping a pointer inside the queue. And what all modifications you have done at the location of the pointer, it will reflect in the items added with the same memory Here ...Show All
Tdar Error: fatal error LNK1113: invalid machine type
Hi all, Has anyone ever seen this error, because this one is above me ..... . I have no idea what wrong is, could someone please help. Thanx in advance Regards Programm3r The thing is i am building the complete project, but how can a piece of code be meant for just one / or a couple of processors , I mean thats like building a car that must take only a certain stereo system. But thanx for the relpy Regards Programm3r O.K I understand ..... I'll keep this in mind in the future, cause I never knew about this .... But thanx alot. Maybe the object file was created for a different processor. Rebuild the complete project. Please note that all major compilers are Cross-Compilers. Th ...Show All
http200 question posted on my blog
Hi all, Somebody posted this question to my blog - quite unrelated - so I'm forwarding it here - I will notify the poster and direct them here as well. thx /*-----------------------------------------------------------*/ Saturday, November 11, 2006 2:27 AM by longwood12345 My email is longwood12345@hotmail.com. I can't post to the MSDN forums because the site has so many problems. Can you please explain to me why the program below doesn't work The program compiles fine, but I get "WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)" during the compile. I am using MS Visual Studio Prof 2005. Thank you. #include "stdafx.h" #include <afxinet.h> int _tmain(int argc ...Show All
billqu textBox - 2 questions
Hi all. I have a textBox controler in my win app that i write in c++. I insert data into the textBox in runtime. 2 Questions: 1) Is it possible to insert the data in LIFO that means that if i insert line "bla bla bla" then new line and then "yada yada yada" it will appear as yada yada yada bla bla bla Is it possible without clearing the box each time, writing new line and then filling with old data. (I have a lot of info and after a while the screen updates slow) 2) If the first question is answered and the data is inserted in LIFO, is it possible to show only the last X lines As i mentioned i have a lot of data comming in but only the last data is the relevant to see... Thanks ahea ...Show All
JavaBoy DLL generated but related import library is missing?
Hello everyone, I am building a DLL file. But the related import library file .lib is not generated. I am using Visual Studio 2003. What points should I check in order to generate the import library file thanks in advance, George Thank you Opfer, Opfer wrote: The linker option for the .lib file is: /IMPLIB:"C:\Documents and Settings\<USER>\My Documents\Visual Studio 2005\Projects\<PROJECT>\Release\<DLL>.lib" If this option isn't specified, it should output a .lib file in the same directory as your DLL, also with the same name, just the different extension (lib). The only command line options that VS adds to the linker when building my DLL (with w ...Show All
Fredrik Johnsson where is my Modeless Dialog?
hi, I just begin to learn MFC with VC6.0. today when I read the <programming visual C++ >5th and try to learn the Modeless Dialog ,I come across a problem, when I get the exe and double click it, i run ,but i can`t find my modeless dialog , is there any thing different between Modal Dialog and Modeless Dialog when they are created or displayed,for example , the create() ,OnInitdialog() any reply will be appreciated Modelless dialog is created using code, CMyDialog *pDlg=new CMyDialog;//created on heap pDlg->Create(IDD_MYDIALOG); pDlg->ShowWindo(SW_SHOW); Modal dialog is created on stack, CMyDialog Dlg;//created on stack pDlg.Domodal(); That's not true. Who told ...Show All
