-
- using ATL DLL in non ATL way
by MonkuMonku
- 1 Replies
- Last post
by Holger Grund
- Sorry that the subject is vague because it's hard to describe my question in one line. I have zero experience with ATL. I was given this ATL DLL project at work that embeds web browser on our application. I was using #import [browser.dll] to access the methods, and CreateInstance() to create the browser. That's how it was used in the example exe project that used that DLL. I should add that I coul
-
- symbol IDR_TOOLBAR1 undefined.
by Sanjeev Jha
- 3 Replies
- Last post
by Sarath.
- Hi,
I am creating a win32 application with Dialog , i want to create a docable toolbar in that dialog, when i inserted a new resource (Toolbar) named IDR_TOOLBAR1 and using it in source file, resource.h file already included, yet it doesn't recognise IDR_TOOLBAR1, when i find the definition for the same from context meny, it gives a message 'symbol IDR_TOOLBAR1 undefined', but it is there in re
-
- re compling error - include\crtdefs.h(388) : fatal error C1017: invalid integer constant expression
by PJ-21
- 1 Replies
- Last post
by Mike Danes
- Compiling...
cotcltest.cpp
c:\program files\microsoft visual studio 8\vc\include\crtdefs.h(388) : fatal error C1017: invalid integer constant expression
I get the above message during compiling of any of my code from a previous version of MS C++. Do I have the correct crtdefs.h file.
75 kb 09/22/2005 10:48 p.m.
-
- Images in Console Application?
by jmac
- 7 Replies
- Last post
by Simple Samples
- Not sure what kind of response Im going to get from this... I want to add a bitmap jpg or gif image into a console application for a game.. I've seen custom libraries made for it but have no idea how to get started for this.
Can you use API stuff Or what is the easiest/best way to go if possible at all... any help would be appreciated.
-
- Intrinsics Vs Asm Vs Optimizer (and maximum flops)
by DesG
- 8 Replies
- Last post
by Holger Grund
- Hello
If I have some very simple loops such as image filter kernels, convolutions, vector products etc, then is it generally worth my while trying to speed things up by resorting to intrinsics or even assembly. Or is it better to just simplify the code structure as best as possible and let the optimizer do the work for me.
Take the simple examples
for(i=0;i<N;i++)
va
-
- Process dynamically loads dll, gives it a file handle but results in a crash when file handle is accessed in dll
by scratchdog
- 5 Replies
- Last post
by Simple Samples
- Process dynamically loads dll, gives it a file handle but results in a crash when file handle is accessed in dll. File handle is created in the process. It dynamically loads DLL. Passes file handle to DLL. DLL code tries to access. Crash, access violation. Is this a security issue Thanks in advance.
-
- Linker problems with ___tmainCRTStartup in VS2005
by mmsinclair
- 6 Replies
- Last post
by mmsinclair
- Hi there I was wondering if anyone could help me with a linking problem I am having with Visual Studio 2005. I want to link a static lib file to a CLR DLL (managed C++). I have built Crypto++ v5.4 as a static library and I have a managed wrapper class in a DLL. The linker error I get is: LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStart
-
- How to serialize multiple objects
by Khufu_I
- 9 Replies
- Last post
by Simple Samples
- Is there a way to serialize multiple objects in C++/CLI, such as array<Cars^>^ BMW = gcnew array<Cars^>(number_bmw_models) array<Motorcycles^>^ Honda = gcnew array<Motorcycles^>(number_honda_models) I want to serialize the BMW array of car objects and the Honda array of motorcycle objects into one file, preferably XML. Note that the length of the arrays are variable, de
-
- Is it possible to have the .dll outside the system32?
by has981
- 14 Replies
- Last post
by has981
- See, I have this car physics simulation that uses SDL. I've placed all the lib and dll files in a sub directory and I'd like to have so that anyone can just double click the exe file and play around with it without having to copy any .dll's to the system32 directory or anywhere. Now in the project properties > Linker > Input > Additional Dependencies I'm specifying SDL.lib (along side ot
-
- Problem using unmanaged static libs from managed C++ Windows Form Application in VC2005
by ArtiB
- 5 Replies
- Last post
by Amya
- I have some Static libs which were intially implemented in VC6 and then converted to VC2005. When I try to use these in my managed C++ application, I am getting the following exception: An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module. Additional information: The type initializer for '<Module>' threw an exception. Any comments/url is appreciated.
-
- Font Mapper Problem
by happymozart
- 6 Replies
- Last post
by Simple Samples
- Hello I use "MS Gothic" in my application, but for example the width of some Cyrillic characters is doubled. Can anybody explain me the behavior void FontTest(HDC hDC) { BOOL rc; LOGFONT fontDesc; HFONT font; HGDIOBJ oldFont; WCHAR szBuffer[255]; BYTE i, j; SIZE fontSize; BYTE line = 0; memset(&fontDesc, 0, sizeof(fontDesc)); fontDesc.lfHeight = 24; fontDesc.lfWidth =
-
- Question on "Program Edit & Continue"
by goka&#64;pune
- 3 Replies
- Last post
by einaros
- I am working on a DLL developed by another party in VC++ 6.0. The DLL when compiled with Debug Info as "None" crashes unexpectedly after working for 3-4 hours (time is variable between half an hour to 6 hours).
But the same DLL when compiled with debug info as "Program Edit & Continue" works fine. (it ran for almost 40 hours before it was topped manually)
DLL
-
- volatile, somewhat puzzled (C not C++ question)
by Hugo6003
- 13 Replies
- Last post
by Hugo
- Hi
I have used volatile many times on several platforms, but I'm seeing something puzzling.
We have code (our own fast read/write spin lock, coded in C). And although it runs correctly both debug and release builds, I am puzzled over what I see in the debugger memory window when running a release build.
The lock data is declared as a typedef volatile struct ...
in deb
-
- C++ date and time
by rahulsk19471
- 4 Replies
- Last post
by Simple Samples
- good day, i wanted to know how to use date and time in C++ Can some one share and tell me to handle dates and time in C++ Thanking you alot. Rahul
-
- How to convert Byte/Int data to Hex
by y3ss
- 12 Replies
- Last post
by mrjimorg
- Hi All,
Anybody can help me on converting an int or byte data to Hex in C++ I'm using VC++ 2005. What I'm doing is, i readbyte() from Serial Port, then i need to convert the read data (0-255) to Hex data (00-FF). I'm new to VC++. Really appreciate you guys help and many thanks in advance.
Thanks
THQ
-
- The version of Vc++??
by zhangyanxian
- 2 Replies
- Last post
by Carl Daniel
- I have seen different vertions of Vc++,such as Vc++ 2003,Vc++ .net, Vc++ 2005,
I'd like to know the relationship of the different vertions ,thank you!
-
- can't execute same thead twic??
by fa.omr
- 2 Replies
- Last post
by fa.omr
- hello every one..
this is my first time i come here in this forum and i have a problem...
i create a project in MFC in MDI with static library.. then i creat a class name "Left" that hava a function called when play button is pressed ,, this function "play" create a thread using "AfxBeginThread" ( the thread declaration is in PROJECTNAME.h) and a functio
-
- I Urgently Need Help About Multithreading !
by Noreturn
- 4 Replies
- Last post
by Noreturn
- I'm writing a programme for my final project which I have to finish in two days . This programme includes a TCPListener to get some data over TCP/IP protocols. So I've made a second thread for this TCPListener. Otherwise, other components woudn't work at the same time due to infinite loop as u predict. But, now I have an other problem; When I start my thread as I wrote below;
Form1^ s = gc
-
- .obj Errors in vs.net 2005
by el_fuerte
- 7 Replies
- Last post
by Krish Reddy
- hi
i'm trying to compile a c++ project in vs.net 2005 and i get this errors
Error 2 error LNK2028: unresolved token (0A000078) "extern "C" void __cdecl cvReleaseImage(struct _IplImage * *)" ( cvReleaseImage@@$$J0YAXPAPAU_IplImage@@@Z ) referenced in function "void __cdecl rt_ProcessFrame(struct _IplImage *)" ( rt_ProcessFrame@@$$FYAXPAU_IplImage@@@Z
-
- Reject Suspend
by Solar9
- 6 Replies
- Last post
by Solar9
- Guys,
What is the problem with the following Code I am running XP/VC6.0
Code Snippet BOOL CTestApp::PreTranslateMessage(MSG* pMsg) { if(pMsg->message == WM_POWERBROADCAST) { if(pMsg->wParam == PBT_APMQUERYSUSPEND) { pMsg->wParam = BROADCAST_QUERY_DENY ; AfxMessageBox("Never got reach!"); } } return CWinApp::PreTranslateMessage(pMsg); }
How do I t
-
- All is fine in release mode, weird bug in debug mode
by Soth
- 20 Replies
- Last post
by Soth
- Hi,
my program works fine in release mode, but in debug mode I get a very strange behaviour,
upon the entry to the operator=, e refers to a correct location, but as some auto generated entry instructions are hit (these instructions are not generated in release mode because this function is inlined) it becomes invalid,
so what can be done to resolve this problem
Code Snippe
-
- GUI Development
by doener
- 2 Replies
- Last post
by doener
- Hello guys,
I have a plan and i want to know if its possible using visual c++ .net 2005! Any input will be welcomed!
My Plan: I want to create a GUI for a microcontroller in which i can write the codes, compile, debug, drag commands to editor windows with pop up information, bind simple data files containing parameters of the different devices i want to write codes for,make some wizards(for
-
- LNK1104
by easterbunny
- 2 Replies
- Last post
by easterbunny
- I've been trying to find a solution to this, and I've found a lot of people mention the linker, but I checked and the "Additional Dependencies" is set to $(NoInherit) (under the input). In general the "additional library directories" is blank. The following is the output on build.
1>------ Build started: Project: Rename, Configuration: Debug Win32 ------
1>Compiling
-
- Byte alignment and 64 bit systems
by Raymond Sanders
- 1 Replies
- Last post
by Bruno van Dooren
- Not sure if this is the correct place to post this, but anyway,
If you compile using 1 byte alignment on a 64 bit system, the MFC functions do not work correctly. Works correctly on 32 bit systems. An example:
void CAppListDlg: nTvnItemexpandingApplistTree(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMTREEVIEW pNMTreeView = reinterpret_cast <LPNMTREEVIEW>(pNMHDR);
if (pN
-
- Failed To Find Module - C++ Interop problem...
by GordonTWatts
- 9 Replies
- Last post
by GordonTWatts
- Hi,
I'm not 100% sure this is the right forum, so let me know if I should repost.
My program is issuing a FileNotFoundException when trying to load ("The specified module could not be found. (Exception from HRESULT: 0x8007007E). I can't, for the life of me, figure out how to determine what DLL ( ) it is trying to load to understand where things have gone south. Any help would be a