|
Dear all,
I want to open a mvc++ project using MVS 2003, everytime i try to do that i get the following message:
"The selected file is not a valid visual studio solution file"
The project i am trying to open, i have developed myself using MVS 2003. I am now trying to open it an another machine.
Any help would be very appreciated. I need to hand it in for correction tommorrow morning. I would value any comments
llp00na
-- modified at 12:32 Sunday 25th September, 2005
|
|
|
|
|
Make sure all service packs are installed
|
|
|
|
|
iv got c++ .net im trying to create a windows form in c++ I cant load a new project from the templates to do this which template should i load to be able to start playing with some code..
im a beginer at this...
any started code would be great to just to get me going...
thanks james....
|
|
|
|
|
I am trying to experiment eventually when i get better at using c++, creating finance equations and plotting them on a form using a constructed Chart in C++, Thats my aim...
Thanks James.
|
|
|
|
|
I want to internationalize my app and am planning to provide the language resources in their own DLL's.
What would be nice to happen would be to be able to call AfxSetResourceHandle() for the requested language DLL, thus causing MFC to search it for any resources, but if the resource was not found, then fall back to searching the EXE's resources. This removes the need to duplicate icons, bitmaps, etc. in each language DLL.
MFC maintains a list of CDynLinkLibrary's that it searches for resources but I'm having trouble finding out the correct way to insert an entry for the main EXE. Is something like this safe:
static AFX_EXTENSION_MODULE extn = { NULL, NULL } ;
BOOL rc = AfxInitExtensionModule( extn , AfxGetApp()->m_hInstance ) ;
ASSERT( rc ) ;
new CDynLinkLibrary( extn );
Or maybe even just this?
static AFX_EXTENSION_MODULE extn ;
memset( &extn , 0 , sizeof(extn) ) ;
extn.hModule = AfxGetApp()->m_hInstance ;
extn.hResource = AfxGetApp()->m_hInstance ;
new CDynLinkLibrary( extn );
Both seem to work OK but I'm worried that there are some hidden pitfalls in doing this.
The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison
Awasu 2.1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hi,
i am looking for fourier algorithm in VC++...if anyone can help me...plz it's very urgent...
|
|
|
|
|
|
I have a WAVEHDR structure set up and I want to store the data from the lpData element which is of type LPSTR to BYTE * for allocating a memory block using GlobalAlloc and to pass back the pointer of this new memory block.
Does anyone know how I can convert LPSTR to BYTE* to do this or can someone show me how to dump the data from the lpData element of a WAVEHDR structure to a BYTE-based memory buffer? Thanks.
Bill Dennis
Orlando, FL
|
|
|
|
|
|
I need to ask.. why GlobalAlloc()? Been using it alot lately?
--
Keep talking! You're the fool, I'm the preacher.
|
|
|
|
|
i use it all the time because you can't use malloc or new to share mem between C++ and VB, for example. but, the original poster mentioned GlobalAlloc, here.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Chris Losinger wrote:
but, the original poster mentioned GlobalAlloc, here.
--
Keep talking! You're the fool, I'm the preacher.
|
|
|
|
|
|
I would imagine that a triangle would be most suitable for that.
But why not do it just like CColorDialog or photoshop[^]?
--
Keep talking! You're the fool, I'm the preacher.
|
|
|
|
|
msdn:
Client Requires :Windows "Longhorn", Windows XP, Windows 2000 Professional, Windows Me, or Windows 98.
Server Requires :Windows Server "Longhorn", Windows Server 2003, or Windows 2000 Server.
###what is different between client requires and server requires?
that is meant it can work in win98 or can't?
why the code can't work in win98:
BOOL GetRegistryProperty(HDEVINFO DeviceInfoSet,
PSP_DEVINFO_DATA DeviceInfoData,
ULONG Property,
PVOID Buffer,
PULONG Length)
{
while (!SetupDiGetDeviceRegistryProperty(DeviceInfoSet,
DeviceInfoData,
Property,
NULL,
(PVOID)*(TCHAR **)Buffer,
*Length,
Length
))
{
if (GetLastError() == ERROR_INSUFFICIENT_BUFFER)
{
//
// We need to change the buffer size.
//
if (*(LPTSTR *)Buffer)
LocalFree(*(LPTSTR *)Buffer);
*(LPTSTR *)Buffer = LocalAlloc(LPTR,*Length);
}
else
{
//
// Unknown Failure.
//
if (GetLastError() != ERROR_INVALID_DATA)
{
}
return FALSE;
}
}
return (*(LPTSTR *)Buffer)[0];
}
here is the exception :
if (*(LPTSTR *)Buffer)
LocalFree(*(LPTSTR *)Buffer);
*(LPTSTR *)Buffer = LocalAlloc(LPTR,*Length);
thanks!
-- modified at 9:43 Sunday 25th September, 2005
|
|
|
|
|
hi,
i want to position the dialog box at a certain position
wat is the funtion member in CDialog class for that.
thanx
|
|
|
|
|
|
|
A very simple way to position your
dialogbox if u have created the dialog
by resource editor,
Open the dialogbox in resource editor
Just right click on the dialobox goto properties
in the General Tab u will find at the botom Xpos & Ypos,
thats it change that's it
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I'm using VC++ .NET, and I want to dinamicaly create a char * string.
I use the following code, but when I try to make the project, I have a error, exactly a link error not a build error!!!!!
char *c = new char [serialNumber->Length];
error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@$$FYAPAXI@Z)
Help me please!!!
Best regards.
|
|
|
|
|
I've only used VC++.NET once so i'm not sure if this is the right way to fix it, but when I got the same error... adding msvcrt.lib to the project settings solved the problem.
|
|
|
|
|
i have a progress bar in the modal dialog.
i want show status progress copying file concurrent with copying whit thisdialog.
please help me.
whit special thanks.
|
|
|
|
|
The basic idea is to move copying to another thread. If you don't want to do it, you can still display progress by regulary processing paint messages. Check sources section of this site (CP, I mean), there are plenty of ready-to use progress dialogs, you will get the idea.
Igor Green
http://www.grigsoft.com/
Compare It! + Synchronize It! - files and folders comparison never was easier!
|
|
|
|
|
If you'd rather not use a separate thread, this[^] article may help.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
The following OnPaint code works very well with single buffering. With it I can zoom in and out, and pan the view. The drawing code doesn't have to be aware of the zoom factor or any other coordinate. But how do I turn this into double buffering ? what mapping mode whould I use on the memory dc ?
CPaintDC outputdc( this );
// Client rect (size of window on screen)
CRect clientRect;
GetClientRect( &clientRect );
// Virtual rect (page coordinates)
CRect virtualRect;
virtualRect.left = m_CenterPos.x - (clientRect.Width()*m_fZoomFactor)/2;
virtualRect.right = m_CenterPos.x + (clientRect.Width()*m_fZoomFactor)/2;
virtualRect.top = m_CenterPos.y - (clientRect.Height()*m_fZoomFactor)/2;
virtualRect.bottom = m_CenterPos.y + (clientRect.Height()*m_fZoomFactor)/2;
// Sets the mapping mode for the specified center position and zoom factor
SetMapMode(outputdc, MM_ISOTROPIC);
SetWindowExtEx(outputdc, virtualRect.Width(), virtualRect.Height(), NULL);
SetViewportExtEx(outputdc, clientRect.Width(), clientRect.Height(), NULL);
SetWindowOrgEx(outputdc, virtualRect.left, virtualRect.top, NULL);
// Draw
EraseBackground( &outputdc, virtualRect );
m_GraphData.DrawData(&outputdc);
|
|
|
|