|
please see MSDN:
This function is provided only for compatibility with 16-bit Windows.
Applications should use the CreateProcess function.
whitesky
|
|
|
|
|
WhiteSky wrote: only for compatibility with 16-bit Windows
But still working though ...
Maxwell Chen
|
|
|
|
|
its in MSDN
whitesky
|
|
|
|
|
WhiteSky wrote: This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
Thats good for starting, as user seems to beginner in Windows Programing
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I only said in MSDN was this title right!?
whitesky
|
|
|
|
|
WhiteSky wrote: I only said in MSDN was this title right!?
Right
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thank you for your support
whitesky
|
|
|
|
|
WhiteSky wrote: Thank you for your support
ABA no Thanks please!, i am always there for friend!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
exactly me too
whitesky
|
|
|
|
|
Hi,
I am using following code in MFC ActiveX to handle Exception,
try
{
}
catch(CException *objException)
{
}
But i couldnt find any option to have Exception messages.
Please explain me....
|
|
|
|
|
didn't u see?
CException::GetErrorMessage()
nave
|
|
|
|
|
Naveen R wrote: CException::GetErrorMessage()
Com based error cannot be catched by cException class!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
he didn't asked that
nave
|
|
|
|
|
Naveen R wrote: he didn't asked that
But you can see, where is actual problem is... as you very well know, com exception cannot be caught from CException Class
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ok ok
nave
|
|
|
|
|
sivaprakashshanmugam wrote: ry
{
}
catch(CException *objException)
{
}
try catching com based error through _com_error wrapper class
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Is there any subset of Win32API that is capable of dealing with TrueType Fonts like picking up a Glyph from the TrueType and rasterizing it.... (While the font is'nt installed in Fonts folder)
Please let me know...
Best regards,
Mohsin Hijazee
Polite Programmer
More Object Oriented then C#
|
|
|
|
|
See AddFontResourceEx( , R_PRIVATE, ) to load a font from a file into the application space.
Once the font is added to the application space you can get a font handle just like you would for a system font, load it into a DC (bitmap), and then write the required text to the DC.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
TrueType Fonts is new in the .NET Framework version 2.0.
So use the following namespace to get that,
System.Windows.Forms.VisualStyles Namespace
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Uh.. which part of Win32 API did you not understand?
|
|
|
|
|
Hi,
I have a used the list box to display the output of the function, Function generates output like
Required Output in the list box.
Filename1
213,456,645,654,647,990
Filename2
534,534,534,543,534,534
Filename3
434,545,655,765,788,1422
Output generated,
213
456
645
654
647
990
534
534
534
543
534
534
434
545
655
765
788
1422
Filename1
Filename2
Filename3
---------------------------------
Function :-
void CSearchDlg :: disp ()
{ int i = 0;
while (strlen (shWord[i].file_name) > 1)
{
m_SOUT.AddString(shWord[i].file_name);
int k = 0;
while (shWord[i].w_offset[k] != -1) {
TCHAR buffer[50];
int f=shWord[i].w_offset[k];
_itoa(f,buffer,10);
m_SOUT.AddString(buffer);
k++;
}
i++;
}
}
-------------------------------------------------
Can anyone help with this function and to generate proper output in the list box.
|
|
|
|
|
I guess your ListBox items are getting sorted. Disable sorting and check.
Nibu thomas
Software Developer
Programming Tips[^]
|
|
|
|
|
Hi Nibu thomas,
Thanks a lot ,yes i had forgot to disable the sort ,
Now its working fine....
|
|
|
|
|
vinaycool wrote: Thanks a lot ,yes i had forgot to disable the sort ,
Now its working fine....
You're welcome.
Nibu thomas
Software Developer
Programming Tips[^]
|
|
|
|
|
vinaycool wrote:
Can anyone help with this function and to generate proper output in the list box.
Try the following code
void CSearchDlg :: disp ()
{
int i = 0;
while (strlen (shWord[i].file_name) > 1)
{
m_SOUT.AddString(shWord[i].file_name);
int k = 0;
TCHAR buff[100];
strcpy(buff,"\0");
while (shWord[i].w_offset[k] != -1)
{
TCHAR buffer[50];
int f=shWord[i].w_offset[k];
_itoa(f,buffer,10);
strcat(buff,buffer);
strcat(buff,",");
k++;
}
buff[strlen(buff)-1]='\0';
m_SOUT.AddString(buff);
i++;
}
} As well use proper indentation, so that others can understand your code.
I have not tested the code, hope this works
Knock out 't' from can't,
You can if you think you can
|
|
|
|