|
I suggest use of CListCtrl on your program its better and very flexible than CListBox.;)
|
|
|
|
|
Hi All,
I calling the method SetEnvironmentVariable and i getting back return value that is nonzero and the last Error does not return to me nothing.
BUT
The Environment Variable is not set !?
What to do ?
Thanks for any help.
|
|
|
|
|
Yanshof wrote: SetEnvironmentVariable
This function will set the environment variable for the current process only. I will not change the whole system's environment variable.
|
|
|
|
|
Thanks,
How can i create new environment variable and/or change exist one data ?
|
|
|
|
|
|
To change system environment variables, modify the HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment registry key.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I wanted to make my program to work on the desktop.
like http://desktop-tools.net/clock.html
i tried many things but i just dont know how did they do it? i dont know about any technique to make it transparant.
Is this possible or is it somesort of rendercode that creates a picture from what you need to have on the desktop and so making everything arround the text transparant? i hope there is a easier way.
Greetz
Rob
|
|
|
|
|
See IActiveDesktop::SetWallpaper for set wallpaper on the desktop.
|
|
|
|
|
thx but then iam setting the whole wallpaper on every refresh of the application :P
isnt there a more useable way then creating wallpapers the whole time?
|
|
|
|
|
|
Did your solve solve or no?
|
|
|
|
|
One way (Windows 2000+) is to use Layered Windows[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the letter Z
|
|
|
|
|
I am trying to print all the characters in MIDI command to a file.
If I open and see file in binary editor, all the characters like 0xF0, 0x43 are OK except the zero. How can I print zero in file.
If I add zero to CString it is not added in CString actually.
The code is:
FILE *pFile;<br />
CString strOut = "";<br />
unsigned char uc;<br />
pFile = fopen("DEBUG_FILE.TXT","a");<br />
for(int i = 0; i < lpMIDIOut->Header.dwBufferLength; i++){<br />
strOut = "\0";<br />
uc = lpMIDIOut->bBuffer[i];<br />
strOut += uc; <br />
if(uc == 0){<br />
fprintf(pFile,"0","%d");<br />
}<br />
else<br />
fprintf(pFile, strOut, "%c");<br />
}<br />
fprintf(pFile, "\n");<br />
fclose(pFile);<br />
Best Regards,
Suman
|
|
|
|
|
Yuk!
Writing binary data into a text file? You should know better than to do that.
You could at least encode the non-printable characters using some sort of encoding? Look at how HTML encodes stuff.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
rp_suman wrote: fprintf(pFile, strOut, "%c");
rp_suman wrote: fprintf(pFile,"0","%d");
Format specification fields must precede actual data.
BTW, what are you trying to do? Do you want to write a text file with the hexadecimal representation of the data?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: Do you want to write a text file with the hexadecimal representation of the data?
Yes, but I want to know how to write the zero when the unsigned char variable value is zero.
Best Regards,
Suman
BTW, Zero is finded out by India, I am an Indian, but I'm struggling how to print that!!
|
|
|
|
|
Have a llok at the following code snippet:
unsigned char buffer[]={ 65, 48, 0, 96 };
int i;
FILE * fpOut = fopen("out.txt", "w");
for (i=0; i<sizeof(buffer); i++)
{
fprintf(fpOut, "%02x", buffer[i]);
}
fclose(fpOut);
it outputs a file whose content is:
41300060
That is the hexadecimal representation of the buffer (note: each byte is represented with a couple of hexadecimal digits, i.e. Zero is 00 )
Hope that helps.
BTW, maybe who invented Zero was far more smarter than me and you...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: Format specification fields must precede actual data.
Hi,
Thanks for your great help!!
I forget the order, and now it is solved.
Best Regards,
Suman
|
|
|
|
|
The question describes as follows:In CxxActiveXCtrl I declare a member m_dlgMain for a dialog which was produce for display the picture and In CxxActiveXCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct) function I wrote "m_dlgMain.Create(IDD_MAINDIALOG,this);",then in the dialog's OnInitDialog() procedure I use IPicture to display the specified picture,the display codes is correct,but can see nothing in the html,while move the codes to the dialog's OnDraw() it works ok,I suppose the dialog doesn't notify the control to erease the background but I've written InvalidRect(TRUE) after display.What's the matter?
|
|
|
|
|
need know how to write a program run on system tray
|
|
|
|
|
|
|
Urgent
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
URGENT!
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the letter Z
|
|
|
|
|
how do we use the progress bar. for example if u are copying something from an external storge to the hardisk it shows a progress bar and the time left. how is the time calculated and how is it implemented in the system???
Chandrasrkharan P
|
|
|
|