|
How? If you can't access to Internet and nobody has the msdn cd ...
|
|
|
|
|
there is a problem seemed to be with my visual studio, because whenever i execute my( any type of ) VC++ project, it gives an error of
"error executing cl.exe"
|
|
|
|
|
Do you have enough access right to execute the program?
Check if the program "cl.exe" is in your "bin" directory of your visual studio installation.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I am the Administrator, so I have enough rights and I've seen there is a file named cl.exe in my ..\vc7\bin directory.
|
|
|
|
|
Maybe there is something wrong with the command line. What does the output window say more?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
did you well closed all the processes you've just generated previously ?
i mean that maybe you're trying to recompile (and so rewrite) an exe file that is already running...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Check the PATH variable, it might help
|
|
|
|
|
what do u mean by path variable ?
|
|
|
|
|
Check, if cl.exe is included in the environment variable called: PATH
|
|
|
|
|
Respected All
I am a Begginer to VC++.
I want to load a bitmap on full screen window i.e instead of loading a bitmap on a dialog the bitmap display on fullscreen window.
waiting for + response.
from
David
david
|
|
|
|
|
a_david123 wrote:
I want to load a bitmap on full screen window i.e instead of loading a bitmap on a dialog the bitmap display on fullscreen window.
First use GetClientRect() api to get Client Rect of your Application then using StretchBlt() stretch bitmap on screen
|
|
|
|
|
Hello my fellow programmers,
I am currently in the process of developing a new application and I am using Visual C++.NET. I want to explore using the Dundas Gauges to use in Visual C++.NET and I don't seem to be making much progress. Does anyone have a sample application I could look at.
Also if it appears that Dundas gauges aren't the way to go, could someone refer me to a more suitable reference libarary.
Also while I'm a born and bred SDI MFC man obviously I am always open to other options. Is there a good guide on Windows Form programming they could refer me to.
Thanks guys
Danny Nowlan
|
|
|
|
|
wrote:
Does anyone have a sample application I could look at.
Doesn't the Dundas site have examples for you to look at?
|
|
|
|
|
Are you tring to use Managed C++ or use the control in an MFC application? It is possible to get Dundas Gauge to work in either. But the way you do it is completely different.
Troy
|
|
|
|
|
Troy,
I would be using this in an MFC environment, to test it out. What files do I need to include to get this going, and how do I set it up?
Best Regards
Danny Nowlan
|
|
|
|
|
for use within MFC I do not know the details myself. However if you send in an email to support@dundas.com they can send you the information you need. Just let them know you want to use the gauge in an MFC project. I believe that they have a wrapper class you can use.
Troy
|
|
|
|
|
hello everyone,
i have a char pszFile[MAX_INT]; variable that is supposed to be used with GetOpenFileName() and GetSaveFileName() functions.
i also havo a CString class member that contains the path of the stored file.
what i would like should be to be able to put the content of the CString into the char* variable...
::strcpy(pszFile, m_strDBFilePath); <font color=green>
i also tried with _tcscpy() function but it doesn't work as pszFile is not defined as a wchar_t* ...
As i don't know really where to look for this, i'd be grateful for your help...
thanks,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
CString is UNICODE aware. Thus the CString is in wide_char format internally. So either will have to WideCharToMultiByte and use strcpy() or pszFile to MultiByteToWideChar and use wstrcpy().
The suggested way is to use TCHAR to define pszFile and _tcscpy().
suhredayan There is no spoon.
|
|
|
|
|
with strcpy(), i get the following error :
D:\FactEditor v2.10b\FactEditor\FactEditorDlg.cpp(1839): error C2664: 'strcpy' :
Cannot convert parameter 2 from 'CString' into 'const char *'
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
instead of strcpy can use this:
::WideCharToMultiByte(CP_ACP,
0,
m_strDBFilePath,
-1,
pszFile,
BUFF_SIZE,
NULL,
NULL);
suhredayan There is no spoon.
|
|
|
|
|
|
you could insert something like:
#if defined (UNICODE) || defined (_UNICODE)<br />
#define _tcstombs wcstombs<br />
#else<br />
#define _tcstombs strncpy<br />
#endif<br />
then to convert CString in UNICODE or non Unicode environment to char* you can use the function
_tcstombs
It has 3 params, 1st param is the target char* 2nd param is the TCHAR string, and 3rd param the size of string to copy....
_tcstombs(pszFile, m_strDBFilePath, m_strDBFilePath.GetLength()); <br />
Hope this helps you along
Davy
|
|
|
|
|
_tcstombs() seems not to be regognized by MSDN
are you sure it's the right name ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
well it`s not an MSDN statement.
you need to insert that
#if defined (UNICODE)... stuff that I mentioned in the above mail,
it will translate the _tcstombs statement into strncpy if not compiling in a UNICODE environment, and it will translate it into a wcstombs statement when compiling in a UNICODE environment.
|
|
|
|
|
oh sorry, i didn't look well at the begining of your previous post.
thanks
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|