-
- ATL dual interface question, A very very strange question!!
by DamanChen
- 3 Replies
- Last post
by Sdi
- Hi all,
I have a question want to ask yours,
I use ATL wizard to create a COM project. when I add a dual Interface to my project,I got the following error
"error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry".
I am sure I have the administrator permissions.
after I made many test, I found if i removed the &quo
-
- Problems with linking functions declared in static libraries - for n00bs
by AE_Cory
- 6 Replies
- Last post
by AE_Cory
- I've run into a problem linking the functions declared in a Win32 static library to a Windows Forms application. To research the problem, I started a new library project and new WFapp project and but in bare-minimum code to test. The problem repeats, so it's something I'm doing fundamentally wrong.
My Win32 library: static_library.lib contains the following files:
Proto.h & test_fun
-
- How to use MFC message maps in Win32 project?
by WooJin
- 2 Replies
- Last post
by Simple Samples
- I've downloaded a (assumed to be)Win32 project from web, and I'd like to use message maps as I've used them in MFC projects. I've included MFC support, to use CString and others and it works fine, but the I get an error message when I type in some message map relative codes, like BEGIN_MESSAGE_MAP, DECLARE_MESSAGE_MAP. Is there any way I can use these features without creating a MFC project Or is
-
- converting already written mfc controls to activex controls
by gosalyn
- 0 Replies
- Last post
by gosalyn
- hi everyone, we have lots of mfc controls that we've been writing for months. And now, we need the activex versions of these controls. So, i was wondering if there's a way to achieve this without having to write all the controls from scratch.. thanks in advance for your help..
-
- Help button get chm instead of hlp
by Simon Heffer
- 13 Replies
- Last post
by CARTHIC
- I have a application built around a CPropertySheet derived class. The help button is looking for 'app.hlp' file (this is the default MFC stuff, I've not added anything other than moving the button). How do I get it to look for a 'app.chm' file instead I've tried the following using a test help file in InitInstance() //First free the string allocated by MFC at CWinApp startup. //The string is a
-
- statically linking a library
by Jesse Beder
- 4 Replies
- Last post
by Jesse Beder
- I'm using Visual Studio 2003, and I'm trying to create a static library and then link to another project. Since I'm it's in 2003, I can't seem to follow the tutorial on the MSDN help files (since that's 2005, and there are quite a few things that are different). I compiled the library file by using the setting "static library" (in the general project settings page), and that seems to wor
-
- VS 2005 Compiler performance inlining
by Stacemo
- 0 Replies
- Last post
by Stacemo
- Hello
I am compiling a large C++ application with VS 2005 for 64 bit and I am still using .Net 2003 to compile the 32 bit version of this application. With the introduction of inline functions in to the code the compiles on the 64 bit platform using VS 2005 have become incredibly long. To give an example a directory with 21 cpp files compiles in 30 min. If I add the the /Ob0 compile flag (n
-
- Using std::ofstream to create many files...
by TommySson
- 4 Replies
- Last post
by Carl Daniel
- Hi, I am running Windows XP and am using VC++ 2005. I have an application that outputs lots of data in many files. Unfortunately, it seems to me that WindowsXP can only handle 509 opened files ! ! I have googled around but have not been able to find specific information about this! I think this number could be a bit higher... I can easily reproduce my situation with the following small code snippe
-
- VS .Net 2005, how to disable intellisense...
by ChandraP
- 14 Replies
- Last post
by Boris Jabes
- Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra
-
- Best ways to test the Code ?
by Jerry560372
- 1 Replies
- Last post
by einaros
- Say I have simple code like adding two numbers or find out which is largest of three numbers and something like that How can I write automated tests..Example will be really appreciated.
Thanks,
Jerry
-
- worker thread slowed by MFC UI interactions
by solehome
- 5 Replies
- Last post
by solehome
- I create a SDI MFC program in which there is a worker thread to render a 3D scene. I found the rendering speed will be interupted and slowed by some UI interactions, e.g., moving the window by drag the window title, mouse move on some toolbar's buttons. However the program implemented by C win32 API has little performence decrease under the same condition.
Could you give some suggestion
-
- problem with PostMessage error #87
by Rakesh Simpi
- 7 Replies
- Last post
by Pintu Shukla
- hi there! i am developing an application in which i need to let UI know about some events.. I've chosen windows messages to that for me. this is how my code looks like..... WCHAR* t = L"MyAppli"; HWND handle = FindWindow(NULL, t); //always succeeds in acquiring the window handle LRESULT l = SendMessage(handle , 8686, 1, 1); if(l==0) { DWORD er = GetLastError();
-
- MFC and CLR - Attempt to load an unverifiable executable with fixups
by Linden Ryuujin
- 4 Replies
- Last post
by Linden Ryuujin
- I'm working on an MFC project that has been underway for some time. It has been decided it would be nice to use .Net toolbars so I'm trying to hook them into the existing project.
The problem I'm having is whenever I have any /CLR files I get the following error: error RA0000 : Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exceptio
-
- Frustrating Error - error C2259: cannot instantiate abstract class
by PootyTanG
- 2 Replies
- Last post
by PootyTanG
- The Error error C2259: 'SphereEntity' : cannot instantiate abstract class 1> due to following members: 1> 'void Entity::render(G3D::RenderDevice *) const' : is abstract 1> : see declaration of 'Entity::render' 1> 'G3D::RealTime Entity::getIntersectionTime(const G3D::Ray &) const' : is abstract 1> : see declaration of 'Entity::getIntersectionTime' SphereEntity is a declared as a
-
- To read the sentence as a whole(single argument) from command-line arguments
by Ajax24
- 7 Replies
- Last post
by einaros
- Hi, i need to run the .exe thro command prompt and need to pass arguments to program, the arguments would be 1. an integer 2. description( it would be not a single word rather an sentence) so how to read that sentence as a single argument in spite of the spaces between , Regards, Ajax
-
- syntax of .vcproj files
by Angy_N
- 3 Replies
- Last post
by Holger Grund
- Hello,
Does anyone have an idea what " means within a .vcproj file For example:
AdditionalIncludeDirectories=""..\..\include\CGAL\config\msvc7";"..\..\include""
Thanks,
Angy
-
- Copy constructor?
by bookysmell2004
- 5 Replies
- Last post
by bookysmell2004
- So I was debugging carefully while I finally discovered sth ...
MyCustomClass ^MyObject1;
MyCustomClass ^ MyObject2;
... (some object calculations) ...
MyObject2 = MyObject1;
From now on Object2 seems to be bound to Object1 member values... Like C pointers.
So, what is the correct way to directly copy from one object to another
I guess that has to do with copy constructors but
-
- List Box
by brahle
- 5 Replies
- Last post
by brahle
- Hello! I would like to read some text from a file and then write it in a list box. I have read the data to a vector< string >, but I don't know how can I add a string (or a char*) to a list box. Can someone please help me
-
- Invalid Operator <
by Man-Nag
- 11 Replies
- Last post
by Andreas Masur
- The Snap shot of the Code in VC 6.0 is shown below. It works fine in VC6.0
// Functions
struct SymEntry { inline SymEntry(ProgramCounter addr, const std: tring& symbol) : m_addr(addr), m_symbol(symbol) {}
friend bool operator<(const SymEntry&, ProgramCounter); friend bool operator<(const SymEntry&, const SymEntry&);
ProgramCounter m_addr; std
-
- Structure Alignment/Packing issue
by Deeps_123
- 14 Replies
- Last post
by einaros
- I have developed a VC6 X application. In X application i am reading/ writing structures in the binary file. These files are used by Y application which is also developed in VC6. Untill now everything was working fine but as soon as i changed the order of struture members i have started getting junk values in Y application. I have changed the order in both the application but my X application is re
-
- Problem with CString Variable
by Suneel VLN
- 8 Replies
- Last post
by Suneel VLN
- I am using a dialog class which is derived from another generic dialog class which itself is derived from CDialog
This class contains many CString varibles and it is working fine.
Later I added another CString variable.
Then also the corresponding dialog is properly opening(Modal Dialog), but after closing the dialog I am getting the following Assertion:
Run-Time Check Failure #2 - Sta
-
- simple pointer question
by I.You
- 7 Replies
- Last post
by scor7910
- Hello.
Please look at this code:
Code Snippet
int main(int argc, char **argv) { ... char **temp = (char **)malloc(SIZE);
for(i=0; i<argc, i++) { // *temp[i] = *argv[i]; strcpy(temp[i], argv[i]); }
...
The segmentation faults occur in for loop. The number of argv is more than 300. What's wrong
Please help me.
-
- gcroot<ManagedType^> m assignment
by iterationx
- 8 Replies
- Last post
by Nishant Sivakumar
- Hi, I'm trying to pass a managed type into unmanaged code and assign it. //unmanaged code client2Dlg.h gcroot<ManagedType^> m; client2Dlg.cpp int CClient2Dlg::loadManaged(gcroot<ManagedType^> refm) { m = refm; // return 0; } I got an error cannot convert from 'System:: Object ^' to 'Client2Dlg ^' I also tried m = &refm , and m = %refm and they both failed. Any ideas
-
- matlab builder for c++ project
by bluejay_2006
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi,
I used matlab builder for .net to build a .net component to be used in C++ project (called in .cpp file).
In Matlab, it has:
Dl.Zone(1); // Dl has several Zones.
But when I used
MWStructArray^ z = (MWStructArray^)(dl->GetField( "Zone(1)" ));
to get the struct, it gave run time error: The field specified was not found. How should I access Zone(1)
-
- mfc70.dll not found :(
by 1337_s0u1
- 13 Replies
- Last post
by Phillip Georgieff
- Gday when I used one of my programs it said I need MFC70.dll cause it was missing so I need a download link to download it. Thanks