hi, does any one know how to put a small java script code (about 10 lines) into a c code script?
what i am doing is creating a web page (by putting html in the c code)
and it works but now i want to add java in and it does not work.
i thought it was like this:
It is now "
"var currentTime = new Date()"
"var day = currentTime.getDate()"
"var month = currentTime.getMonth()"
"var year = currentTime.getFullYear()"
"document.write(day + / + month + / + year)"
by doing this, the only thing that shows up on the web page is the top part of the page i created, then "It is now" and then on the following line is "variable status" but what i wanted it to do is after "It is now" it should show the correst date on the webpage.
It is now "
"var currentTime = new Date();\r\n"
"var day = currentTime.getDate();\r\n"
"var month = currentTime.getMonth();\r\n"
"var year = currentTime.getFullYear();\r\n"
"document.write(day + / + month + / + year);\r\n"
Yes I did, even though that is the default in VB. I even tried some slight of hand, by changing the prototype slightly and passing the actual pointer via VarPtr(), but it made no difference in the result. What bothers me is that I had to pass ClassGuid to the SetupDiClassGuidsFromNameA function inorder to fill the GUID structure and it succedes every time. I can even use the various slight of hand modifications, I tried with SetupDiGetClassDevs, on SetupDiClassGuidsFromNameA and it still succedes.
Any way I think the guys on the VB forum may be able to help. I've been ask to post the code, and I will be doing that there on monday (since I do not have it here).
Mean while I just wrapped it up in an ATL COM object (ActiveX control), so that I could consentrate on other details for awhile.
F.Y.I. I found a free program on the www called ApiViewer.exe (ApiViewer 2004) that produces declarations for almost every thing, unlike the viewer that comes with VB. Although you need to verify that they are correct yourself, since the prototype for SetupDiGetClassDevs was incorrect (no return value specified).
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
I would also read Michael Dunn[^]'s other shell articles. I have them saved to my
PC, and they're a better resource than the platform SDK! I have plagiarisedused
them extensively for my own shell toys.
I am writing an AutoRun.exe for my CDs/DVDs. I am not that familiar with C++/VC++ environments. How can I reference "SYSTEM32.DLL" and use function "GetPrivateProfileString()"? Prefer in C++/VC++ 7 & Unmanaged Code.
I am trying to avoid .NET FrameWork dependencies because not every machine loaded with .NET FrameWork. Any input is greatly appeciated. Wish you a happy & thriving 2005.
i am recently working on a project using DirectX 8.1 and VC++.NET. I need to develop the program under fullscreen mode. Then i realize i need to add a printing function, to call the printers connected and print some documents and pictures in the program. I have some knowledge on how to do it using MFC, but not under the circumstance i described above.
So i welcome the nice gentlemen who know this trick enlighten me abit. thank you very much in advance.
The man of tomorrow is shaped by his battles today.