|
We have a CAD product which actually drives a HP designjet 430 36inches printer.We will draw some objects and we will create HPG files and will give that to HP designjet 430 printer.But plotout is coming upto 52 inches. An object which is more than 52 inches length it is not drawing completely. Could any one of you tell me what could be the reason for this. Please help me, because it is very urgent.
regards,
Pothirajan C
|
|
|
|
|
Hai Frens
I have two static group box in a dialog. . .
I need to paint each using different color.
Can any one guide me to do that. . .
Thanx
bye
|
|
|
|
|
|
|
I just tried to add some text into the MyProg.Cnt file using the HTML/XML Editor with Encoding editor.
Nothing is displayed when I call up (from the Help memu option other than the following text:-
<<YourApp>> Help Index<br />
<br />
<br />
<< Write a topic here that discusses your application's main dialog.>>
Are they an example project that show the format you should use.
I was told by someone to use a Freeware program Cheetah.
But as its the first time I have tried to use help, I thought that Visual Studio .Net 2002 would have all I needed, just need to know how to use it.
Any articles/wed sites out there, please as not used HTML or XML, but I think could use it with a little effort.
|
|
|
|
|
Hi
I have to write a program in VC++. I want to make a soft keyboard containg some of the actual/physical keys on the keyboard. Now by using mouse if I press on the soft keyboard keys, the same action should occur that occurs when presssed on the physical keys on the keyboard.
I did not work on this type of application till now. Can anyone please help me or give me some directions.
Thanks
Madhavi
|
|
|
|
|
|
i want to write a program by C++ , that it will hide a file so that noone can see this file in the directory. What techonology of this i need to learn to do it by myself?
Thanks
Ask More - Learn More
JohnJone
|
|
|
|
|
HANDLE hFile;
TCHAR fileName = TEXT("C:\\myfile.txt");
hFile = CreateFile(
fileName,
GENERIC_WRITE,
FILE_SHARE_READ,
NULL,
CREATE_NEW,
<code>FILE_ATTRIBUTE_HIDDEN</code>,
NULL);
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
i know what you means. But i want to know other tech. Because if we set the file's attribute is "hide", user can easily unhide if they choose folder option/and choose unhide in windows.
I mean that i will hide all time even user set view unhide file. And just my program can set unhide attribute to the file only.
Ask More - Learn More
JohnJone
|
|
|
|
|
Ah, well, then the answer is simple. It's just not possible
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
Oh, i see some application can do that. But i dont know how they do that, what technology they use.
|
|
|
|
|
Really?, on Win32?
Got any links or names?
It sounds interesting, allthough the use of it goes beyond my imagination.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
By the way, how did you notice that the files were hidden
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
john_tran wrote:
What techonology of this i need to learn to do it by myself?
How about SetFileAttributes() ?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi
I wan't to run my exe program and pass some arguments with the exe file. example:
MyProgram.exe "nr1,nr2,nr3,nr4,nr5"
This is some of the code:
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
char *token;
char seps[] = ",";
token = strtok( lpCmdLine, seps );
This works ok in Visual C++, but i would like to do this in Emededd C++. There i get an error: error C2664: 'strtok' : cannot convert parameter 1 from 'unsigned short *' to 'char *'
How can I do this right?
Thanks!
|
|
|
|
|
try casting your lpCmdLine var to char*
strtok( (char*)lpCmdLine, seps );
It seems strange, cuz LPSTR is an ANSI string...
Hope this helps you,
Davy
|
|
|
|
|
|
GDavy wrote:
It seems strange, cuz LPSTR is an ANSI string...
Not if you are compiling for unicode, then LPSTR is unsigned short * .
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
Nono,
LPTSTR is a Unicode format (wide char) in UNICODE and ANSI when not compiling for UNICODE
LPSTR is always ANSI string (8bit)
LPWSTR is always wide char string(16 bit)
But I used to be confused by these too..
Greetz,
Davy
|
|
|
|
|
You're so right.
But regardless, it seems that something makes his compiler believe that LPSTR is defined as unsigned short * .
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
gunnar66 wrote:
error C2664: 'strtok' : cannot convert parameter 1 from 'unsigned short *' to 'char *'
It seems like you've defined UNICODE (or _UNICODE, I can't remember the definition for compiling for unicode precisely). If thats the case, then LPSTR translates to unsigned short * instead of char * .
strtok requires char * parameters, if you intended to use unicode strings, you should use wcstok instead.
[EDIT]A GDavy has corrected me, LPSTR should be defined as CHAR * and CHAR should again be defined as char . But if the code you've given us is the same you're using for your embedded version, then somehow LPSTR must be defined as unsigned short * [/EDIT]
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
I have a problem with my class derived from CRichEditCtrl, I gladly text the Scroll event would intercept however it folds unfortunately.
White someone which there wrong I made?
BOOL CREditControl::PreTranslateMessage(MSG* pMsg)
{
switch(pMsg->wParam )
{
case VK_SCROLL:
//Test
AfxMessageBox("VK_SCROLL");
return true;
}
return CRichEditCtrl::PreTranslateMessage(pMsg);
}
thanks, Matthias
|
|
|
|
|
Hi,
In a Win32 Application I would like to check if command line parameters
/b /a is provided. The Messagebox show me the parametters like
/b /a but the if condition do not met it alwasy the else statment
that apply.
if ("/b" == szCmdLine || szCmdLine == "/a")
{
MessageBox (NULL, szCmdLine,"met",0);
}
else
{
MessageBox (NULL, szCmdLine,"Not met",0);
}
I did also chcked "//b" == szCmdLine. What I am missing?
Regards.
|
|
|
|
|
if szCmdLine contains other parameters besides /a or /b, you will need to do this.
if (szCmdLine.Find("/b") >= 0 || szCmdLine.Find("/a") >= 0)
{
MessageBox (NULL, szCmdLine,"met",0);
}
else
{
MessageBox (NULL, szCmdLine,"Not met",0);
}
|
|
|
|