Answer Questions
kguyot Using resources in a static library
Is it OK to use a dialog resource in a static library I've never had the need to do this and now when I try to add a CDialog class from the dialog context menu (Add Class...) I get the following error. Failed to return new Code Element. Possibly syntax error. New Element Name: <afxwin.h> I figured this might have something to do with the fact that my project is a static library. I'm using VS 2005. Mart ...Show All
Robert Pickering accessing trackBar Scroll value?
Hello, I am using Visual C++ 2005 Express Beta 2 and cannot sort out how to use the Scroll property value for a trackBar. Under Event properties the name for the Scroll property is trackBar1_Scroll so how do I print out the Scroll value I have tried using Console::WriteLine(trackBar1_Scroll.Value); but get error message error C2228: left of '.Value' must have class/struct/union if I use Console::WriteLine(trackBar1_Scroll->Value); I ...Show All
Antonio Galvan Can't use resource view to edit resource in VC8
When I double click the rc file to edit the resource, the IDE will inform me the "fatal error RC1107" message. Even the resoure file of newly created project by VC8 are not able to be edited. These resource files are valid since I can edit them in VC7. That's a wonderful feature to edit the resource in exe. I haven't heard of that before. It seems that there're still much features I don't know yet, hehe ...Show All
c01dfire C2825 error ?
the following code will generate a C2825 error in VS2005Beta2 July: #include "stdafx.h" #include <vector> #include <iostream> int _tmain( int argc, _TCHAR* argv[]) { int i = 3, j = 6; std::swap< int >(i, j); //C2825 //but use std::swap<> <i, j>; will be ok return 0; } I don't know why this , but who else can explain it to me many th ...Show All
Paulo Silva Jr. VC++ 6.0 or .NET for DirectX Programming??
<Drunkalot@discussions.microsoft.com> wrote in message news:6b708d7a-91ad-447e-a652-4487fb2ce1d1@discussions.microsoft.com > I'll start programming with directX and need to know what's best... > > Is using Visual C++ 6.0 or the VC++.NET For DirectX programming specifically, I don't think you'll notice much difference. I would prefer VC.NET if only because VC6 is a 7 year old product an ...Show All
lifeforms Link Errors
I am making a game from the Digipen ProjectFun FunEditor program and compiling it though Visual C++ 2005. It compiles but not an .exe, and says it cannot find the file when I try running it. This is what it says in FunEditor: Failed to execute: <file.exe> The following error was reported: The system cannot find the file specified. On the Visual C++ compiler: Build Log Build started: Project: Brick Game, Configuration ...Show All
Bartleby1 Active non Active processing for CFrameWnd
Hi All, I have SDI MFC application (VC++6 Pro) which uses modeless dialog. When I ALT+TAB to a different application I would like to be able to hide my modeless (alaways on top) dialog and when I again make my application active to be able to restore my modeless dialog. What messsage handler should I use I looked into my MSDN documentation but I can't seems to be able to find anything that would point me to the right direction. Thank You for you ...Show All
Mesan935 How to use .Net assembly in VS 6 C++ Project ?
Hi, I want to use a dll, that is written in C#, in my VS 6 C++ console application. Unfortunatly I can not find any way Is it possible to use it thanks.. Thank you for your response , it helps alot. I can implement the the sample. But it does not work on my dll, My C# dll is for MSMQ operations .I can send messages to MSMQ in a C# application by using this dll(after modification that is explained in your link) and sa ...Show All
J J How to change this VB program into Vc++ program
The boss give me a big VB program and ask me change this VB program into Vc++ program and this program has no any document.Please tell me if there is some short-cut method to do this job.Maybe I can use some code of calculation in that VB program.I know a little VB and am familar with VC++.And I think that the interface should be in Visual c++. Please give me more suggestion. Thank you! We are producing a V ...Show All
Marc de Vries Norton Windoctor found the following 2 errors and is unable to fix them
"C:\WINDOWS\$NtUninstallKB898458$\ORUN32.EXE" cannot access a necessary file, "learn32.dll." "C:\WINDOWS\$NtUninstallKB898458$\ORUN32.EXE" cannot access a necessary file, "pctree32.dll." The program ORUN32.EXE may be part of Microsoft Interactive Training for Windows XP. Or it may be part of another program that is causing the error message. What 2 do To solve this problem, delete the folder: "C:\WINDOWS\$ ...Show All
Alexander R. A problem of CComUnkArray::Add() in the atlcom.h
Hi all, The excerpts of the function look like this : DWORD dwCookie = 1; for loop () { if (condition match) { return dwCookie; } aiwdwCookie ++; } Look! What is aiwdwCookie I think this is a bug of atlcom.h. Could you help me to identify this issue Look at the modification date! Take a look at the sa ...Show All
Bates How to write two nested classes extend the other parent class each other
Hello. I tried to convert the following C# code into C++/CLI. namespace ConsoleApplication { class Class1 { public class NestedClass1 : Class2 { } public class NestedClass2 : Class2.NestedClass2 { } } class Class2 { public class NestedClass1 : Class1 { } public class NestedClass2 : Class1.NestedClass1 { } } } At first, I supposed the following code ...Show All
aoky Heap/Stack Overflow/Overrun Issues
I am running a simulation program in VC++ 6 that requires arrays (dynamic or otherwise) that will eventually have as many as 200,000 entries of type "double". The program works fine when I use small arrays (with a few hundred entries) but fails when I increase the array size to say several thousands. The error code is "Unhandled exception in sim.exe: 0xC00000FD: Stack Overflow". I guess the main question is, if possible ...Show All
gianpaolo Debugging problem
hi I have one source code that usually should work, i made new Visual C++ project, Win32 app. console, EMPTY one, there i choose new file- c++, and i pasted my code there, and when i press debugg button it gives me error : "Unable to start program C:\...... project.exe. The system cannot find the file specified." I think that's because i've choosen empty project... but i don't know how to fix it any help please thanx Visual ...Show All
Chad Neal memory leak with static attached dlls
Hello, I am using Visual C++ 2005 with Visual Studio 2005 Professional Edition. I made an mfc application, that uses a dll, which is attached statically in the project propertys with the dlls lib. I noticed now, when i close my application, i get a memory leak for that dll. It seems like its memory is not been freed. In the dll, there is a class definition with some static member methods and a global static std::vector variable, which ...Show All
