|
Yeah Took me awhile to get the grasps for what those things are. USHORT needs return value Void not etc etc Long and so =)
Now i can dig in C++ Not so much diff than java basics are same. just diff looks confused the hell outta me !!!
beside writing 8 page code and this is like 1 and half week on C++ for first time aint that bad huh ??? Maybe i am slow.
|
|
|
|
|
|
its suppose to give this back
return ScoUniSetRelay(relay,0);// for each relay the next
return ScoUniSetRelay(relay,0);// Number untill 25 including 25
return ScoUniSetRelay(relay,0);//
return ScoUniSetRelay(relay,0);
return ScoUniSetRelay(relay,0);
return ScoUniSetRelay(relay,0);
thats y i wanted return in it the Machine responses to those commands.
if it gives out ScoUniSetRelay(15,0) relay 15 will turn off. i jsut wanted a collective command to turn all 0-25 off including 0
PS: Suppose to give all tha back for the robo to set all the Relay back to off. ScoUniSetRelay(relay,0) 0=off relay for which one.
I used CD MSDN
|
|
|
|
|
Maximilien wrote:
msnd works ... I searched this : http://search.microsoft.com/search/results.aspx?view=msdn&st=b&na=82&qu=for+loop+c%2B%2B&s=1[^]
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi folks..
Is there a way to read an exe file's version info, icon etc programatically
using C/C++ ?
e.g How do we read notepad.exe's version info via C/C++ calls?
thanks in advance..
|
|
|
|
|
munawar1968 wrote:
exe file's version info
GetFileVersionInfo
munawar1968 wrote:
icon
ExtractIcon
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Thanks man..
can this info (gathered via getfileversion,extracticon) be used to set the
version /icon of another exe file programmatically?
|
|
|
|
|
munawar1968 wrote:
another exe file programmatically?
Nope, you have to use these api for Programmatically changing resource in other file :-
BeginUpdateResource,UpdateResource and EndUpdateResource.
And Here is article relating to above Api's
http://www.codeproject.com/cpp/UpdateResource.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Exactly what i wanted...
thanks a million
|
|
|
|
|
Hi,
There has to be a library function that does this? I need to convert a path from say:
C:¥Program Files¥Mozilla Firefox¥firefox.exe
to
C:¥¥"Program Files"¥¥"Mozilla Firefox"¥¥firefox.exe
The reason is I need to pass the full path name to _spawnl
I wrote a simple function to do this, but is there a library function that already does this?
Thanks in advance.
|
|
|
|
|
tsss,
no need to do this
the strings using doubles \\ are because when you code, the single \ is used as the escape characters.
but if you get the path from say an edit box, the \ (written alone) are in the same format.
in brief, you need double back-slashes only in design/coding time...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You know, it's really weird, but with _spawnl I had to do this for it to work otherwise I got all these weird errors.
Anyway, I have just found the wonderful function CreateProcess().
Thanks!
|
|
|
|
|
but where did the string you were passing to _spawnl() come from ?
your source code ? or was it an entry the user passed to the program ?
anyway, you can use - for example - this functions :
CString strPath;
<font color=green>
strPath.Replace(<font color=gray>"\\"</font>, <font color=gray>"\\\\"</font>); <font color=green>
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
have you tried putting the entire path inside double quotes ?
csPath = "\"C:\\what ever\\file.exe\"";
just a thought.. don't know if it'll work or not
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Thanks for the answers everyone. I moved to using CreateProcess() which just accepts a path like:
CString path = _T("\"c:\\path with spaces\\file.exe\"");
with _spawnl() I had to put quotes around every path element with spaces in it like so:
CString path = _T("c:\\\"path with spaces\"\\file.exe");
|
|
|
|
|
hi all
i need to display text with halo effect can any one help me out with this.
please help
regards
pradish
thanks in advance
|
|
|
|
|
I have to crete tooltips in Win32 SDK.I am going to use this in AutoCAD.
When i put a cursor on any part of drawing of autocad it should show some relevant information.So i am using tooltips.So how should i proceed?
Thanks,
Amruta.
|
|
|
|
|
|
g'day all
i am writing a app in win32 i am drawing a rectangle on the desktop while the app is minimized in the task i am using the rectangle function to draw the rect the problem is how do i structure the program to respond to the mouse move which is not on the app window the rectangle also needs to be moved when the mouse moves i already have figured this part out
thanks
|
|
|
|
|
see if SetCapture[^] solves your problem, or else check with hooks[^] if they help.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
If you're already drawing a rectangle on the desktop when your app is minimized, then you already have a solution.
Otherwise you could write a system-wide mouse hook.
« Superman »
|
|
|
|
|
Hi,
I was wondering if any of you know how to open microsoft word in C++? i need to pass strings out to a template word document to fill in.
Much thanks,
(john.parr@logicacmg.com)
I know the VB script method:
'Used to open word and populate CD label values in a word template'
Dim oWordApp
Dim oWordDoc
Set oWordApp = CreateObject("Word.Application")
If oWordApp Is Nothing Then
MsgBox "Couldn't start Word."
Else
oWordApp.visible =true
Set oDoc = oWordApp.Documents.Add("C:\cdtemplate.dot")
with oDoc
.bookmarks("mainTitle1").Range.text="HELLO"
.bookmarks("subTitle1").Range.text="TEST_DATA, PLAN_TEST - 393"
End If
|
|
|
|
|
You'll need to use automation. Make a search on the MSDN site (here[^]) about the subject Word automation.
I think once you get the object, the methods will be the same as in VB.
|
|
|
|
|
How to Get remote/network printer is installed on LPT port or not?
By manan_be_it
I have got the printers who are Local as well as in network. Now i need only those printers in a network installed on LPT Port only.. do send me full CODE, buddies...
tytyttttyty
|
|
|
|
|
Shucks, assuming you used the EnumPrinters function you are already halfway there!
PRINTER_INFO_2 and PRINTER_INFO_5 have a field that already tells you this:
pPortName
Pointer to a null-terminated string that identifies the port(s) used to transmit data to the printer. If a printer is connected to more than one port, the names of each port must be separated by commas (for example, "LPT1:,LPT2:,LPT3:").
Windows 95/98/Me: This member can specify only one port because multiple ports per printer are not supported.
|
|
|
|