-
- Warning C4482 - Enums
by Steve Jackson
- 6 Replies
- Last post
by xpnctoc
- Maybe this isn't the correct forum, perhaps if I ask the question this way. Is there anything wrong with the way I am using the enum below FigureNames is simply an enum {jack, jill, etc..}. When compiling, it get the following warning;
Warning 2 warning C4482: nonstandard extension used: enum 'Names' used in qualified name c:\Documents and Settings\Steve Jackson\My Documents\MySchool\C++\A
-
- About title
by Hi,
- 1 Replies
- Last post
by Simple Samples
- My application is based on Doc/view architecture. I want to change my title. Since my application supports for many languages title characters will change frequently as per the language. In main application i could change the title by specifying SetTitle() method in mainframe. But while calling AfxMessageBox() it takes English character itself. In some article they said i have to change m_pszAppNa
-
- Create Macro
by Jangid
- 7 Replies
- Last post
by Bite Qiu - MSFT
- Hi to all,
How do I create a Macro in VS.Net
e.g.
$(TargetDir)
$(SolutionDir)
$(ConfigurationName)...etc
I want to create a Macro in VS.Net e.g, $(MyDir) = "C:\dir1\dir2\.......\\\\\Finaldir"
Kind Regards
Manoj Jangid
-
- C++ console function that cuts the last character of a word
by Hourani
- 14 Replies
- Last post
by Furqan Farooqui
- Hello everybody, I didn't find any C++ console section so I had to post here. I want a C++ function that cuts the last character or a word and prints out the modified word. This is my best hope someone will help me.
#include <iostream>
#include <string>
using namespace std
void cut( char *name[])
{
char y[strlen(name)]=name;
-
- Release build memory problems leading to performance degredation
by NeilCFD
- 5 Replies
- Last post
by NeilCFD
- Hi everyone,
I have just integrated an old open-source third-party numerical solver into my C++/MFC computational fluid dynamics code, and I'm having problems with performance degradation.
The solver makes a large number of memory allocations, allocating around 1Gb in total for a typical analysis. My code uses the solver repeatedly during an analysis, but each time all the allocated memory i
-
- LNK2028 and LNK2019 when porting to managed C++
by Alex Foygel
- 7 Replies
- Last post
by chuck carp
- I¡¯m trying to convert an unmanaged C++ application that uses a third-party DLL (written in unmanaged C++) to a managed C++ application that uses the same DLL.
The unmanaged app builds fine, but when trying to build the managed version of it, I¡¯m getting the following linker errors - LNK2028, LNK2019, and LNK2001.
Here is C++ snippet that reproduces some of these errors. The code ma
-
- Can I make a program to disable aero?
by Tyrael117
- 4 Replies
- Last post
by Tyrael117
- I want to make a program in C++ for Windows Vista that controls my aero settings. What I basically want it to do is come up with a menu that has a button that says Start Game Mode. And what I want that to do is set the windows GUI to classic so aero doesn't take up all of the computers resources. Can I do this
-
- Compiling the code developed in VC++ 6.0 on .NET2003
by Venugopal.Pudipeddi
- 4 Replies
- Last post
by Marius Bancila
- Hi, The following compilation error is getting while migrating the code from VC++ 6.0 to .NET2003. c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\list(34) : error C2558: class 'std::auto_ptr<_Ty>' : no copy constructor available or copy constructor is declared 'explicit' with [ _Ty=Notice ] c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include
-
- Includes in Mixed-Mode DLL
by ReneeC
- 1 Replies
- Last post
by ReneeC
- I have a DLL with a Managed Class and an an Unmanaged Class and and having include problems.
I have built previous native mode Assemblies where the includes are against header files in the Vista SDK.
There are ambiguities with mixed mode DLLs however. On compliling, I receive the following error:
1>c:\program files\microsoft sdks\windows\v6.0\include\ocidl.h(6238) : error C2872
-
- System.StackOverflowException with Threading
by Emma Oges
- 8 Replies
- Last post
by einaros
- Hello,
I am new to threading, trying to develop two parallel routines using seperate data variables for each.
A " An unhandled exception of type 'System.StackOverflowException' occurred in TwoStream.exe" was thrown at the start of the second thread. The code snipplet is illustrated below:
public ref class TwoStreams
{
public :
static void
-
- Win32 Basic Windows Form documentation
by Al6200
- 3 Replies
- Last post
by Simple Samples
- I have a background in managd C#/ActionScript and I'm looking into Win32 C++. I created a simple WindowsApplication and I'm pretty clueless about the code that's given when the application is created. Where can I find documentation as to what this code does, and how exactly its put together
-
- error LNK2019: unresolved external symbol - when trying to sort an std::deque
by Amela
- 2 Replies
- Last post
by Amela
- Hi!
I'm migrating code from Visual Studio 2003 to Visual Studio 2005 and have run into problems with a rather simple piece of code that compiles and links fine in 2003 but fails to link in 2005.
Basically, I have a deque class that contains pointers to objects of a simple class. I defined a sorting predicate function and try to sort the queue.
Here's the essence of what I'm try
-
- How can I cancel OK button click event?
by baxybaxy
- 2 Replies
- Last post
by baxybaxy
- Hi
I am calling a form CreateNewSimulation, where a user enters some data about the simulation they are running:
CreateNewSimulation ^ thisnew = gcnew CreateNewSimulation(gamelist);
if (thisnew->ShowDialog()==: ialogResult: K)
{
.... do something....
}
On form CreateNewSimulation, I have an OK button
But I need to check what they have entered is va
-
- Stepping through VC8 SP1's debug CRT ? PDB File available?
by Nelson B
- 3 Replies
- Last post
by BogdanZ
- For years I have used older versions of MSVC and their "debug" C run time DLLs, e.g. MSVCRTD.DLL . I was able to step through the code in the debug CRL DLLs. This past week, I installed MSVC 2005 Express Edition, SP1. Now it seems that I can no longer step through any of the CRT functions. It seems I need a PDB file for MSVCR80D.DLL and I don't have one. So, can you tell me how to get t
-
- MSVCR.dll trying to upload photos to Sam's Club
by Margaretr
- 2 Replies
- Last post
by Margaretr
- I am a computer novice so I don't understand most of what you are all saying. I am trying to send photos from mydocuments to Sam's Club after downloading their software. I get a message MSVCR80.dll is missing from C:\ProgramFiles\Common files\Adobe\Acrobat\ActivePDFShell.dll. does this have anything todo with what you are saying and can I fix it without being a computer whiz I have been able to f
-
- Microsoft Visual C++ Runtime Library Runtime Error.
by Kartheek D. N.
- 1 Replies
- Last post
by Ayman Shoukry - MSFT
- February 05, 2007
Hai!
Today, installed BSEXplInst.EXE available at www.bseindia.com under Downloads\Download BSE Xplorer. And, when I click the BSE Xplorer, the following is being displayed -
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\Program Files\BSE\Xplorer\NoticesExpl.exe
This application has requested the Runtime to terminate it in an unusual way. Pleas
-
- C# program link C++ lib/dll
by shiping wang
- 2 Replies
- Last post
by shiping wang
- Hi, friends:
I'm trying C# program. I wish to load my orginal C++ dll or lib. How I can link these lib/dll within Visual studio
Thanks!
WSP
-
- SetLayeredWindowAttributes API
by ksharma_deepak
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi All , i am using API "SetLayeredWindowAttributes" in my simple dialog base project .. for transparency
/* First, see if we can get the API call we need. If we've tried * once, we don't need to try again. */ if (!initialized) { HMODULE hDLL = LoadLibraryA("user32.dll"); pSetLayeredWindowAttributes = (PSLWA) GetProcAddress(hDLL, "SetLayeredWindowAttributes"); init
-
- Cannot get debugging to work with VC++ 6.0
by samps8
- 12 Replies
- Last post
by Simple Samples
- Hello. I've been asked to recompile a new version of a 3rd party image processing library into some legacy Windows services that were written in VC++ 6.0. I'm a C# developer so the language isn't a problem, but the whole development environment back then was a nightmare! I've configured the active build to Win32 Debug and I can build the project without errors. However after setting breakpoints an
-
- How to open windows explorer
by Rdrag0n
- 2 Replies
- Last post
by Rdrag0n
- Hi, I'm creating a windows forms application with VC++ (visual studio 2005). What is the best way to open windows explorer from within the program I know it can be done with: ShellExecute(NULL, "explore", "C:\\", NULL, NULL, SW_SHOWNORMAL); but I can only get that to work in a console application, and it isnt compitable with /clr: pure I think.. Thanks, Rik
-
- How to solve - error C2872: 'IServiceProvider' ?
by kawing0510
- 2 Replies
- Last post
by kawing0510
- Dear everyone, When I compile the DirectX program with managed C++, the compiler generated the error messages: c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\comdefsp.h(1037): error C2872: 'IServiceProvider' : ambiguous symbol c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\comdefsp.h(1037): error C2872: 'IServiceProvider' : ambiguous symbol could be 'c:\Program Fi
-
- Class help
by Little_Dice
- 7 Replies
- Last post
by Little_Dice
- I keep getting some errors due to my classes. I was hoping someone could help me with these errors. c:\documents and settings\xx\my documents\visual studio 2005\projects\dung and drag\dung and drag\item.h(13) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable
-
- Can we use vc redistributable for 64 bit on Vista OS?
by Anonymous562141
- 2 Replies
- Last post
by Anonymous
- Hi!
I am porting a 32 bit code developed on VS6 to a 64 bit code on VS2005. This exe requires that the vcredist_x64.exe be installed on the system for it to run. When I look into the msdn website, it doesnot say anything about this exe being supported on the Vista OS. Could someone please tell me if there is any document available on msdn for the same I need proof to be given to the end use
-
- This application has failed to start because the application configuration is incorect. Reinstalling the application may fix thi
by Predoni Traian
- 14 Replies
- Last post
by Simple Samples
- Hello, I have created a small program: #include <stdio.h> int main(){ printf("Hello world.\n"); getchar(); return 0; } If I test by running it from Visual Studion is working perfectly. But if I try to test this program by moving the hello.exe file on other machine that do not have Visual Studion installed then I have an error. The error is: "F:\hello.exe This application h
-
- creating component in ATL server while accessing for .net client giving error DISP_E_BADVARTYPE
by gopigg
- 1 Replies
- Last post
by Damien Watkins - MSFT
- Following is my ATL server com component declaration.
interface IClientInterface: IDispatch
{
}
interface IClientFind : IDispatch
{
HRESULT GetClient([ out , retval ] IClientInterface** pInterface);
}
library ClientLib
{
importlib ( "stdole2.tlb" );
[
uuid (225F77EC-A8AA-414e-A497-51363F2AC401),
appobject ,
]
coclass Client