|
Yes, one output.
If you use a line such as RTS on pin 7 of the 9 pin serial connector and ground on pin 5 then you can control the RTS pin with a serial port class that allows individual handshake pin control.
This is much better than trying to send data continuously although that would work most of the time.
Elaine
The tigress is here
|
|
|
|
|
|
|
I reopened a program to work on and now I receive the message below when I try to compile. I looked at the FAQ section of the forum and found some similar items. I think 2.3 might be what I need but it didn't work. I did find the "msvcrtd.lib" file on my VC++ cd and I copied it into the LIB folders, but it didn't help. I'm stuckaroo.
--------------------Configuration: StdAfx - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Linking...
msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
Debug/StdAfx.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
StdAfx.exe - 2 error(s), 0 warning(s)
--------------------------------------------------
I tried to do FAQ 2.3. but then got this message below:
--------------------Configuration: StdAfx - Win32 Debug--------------------
Linking...
LINK : fatal error LNK1104: cannot open file "msvcrtd.obj"
Error executing link.exe.
StdAfx.exe - 1 error(s), 0 warning(s)
-----------------------------------------------------
I went to MSDN.com and typed in "fatal errorLNK 1104" and got the following message:
Microsoft JScript runtime error '800a0007'
Out of memory
/search/app/Search_Execute29.asp, line 5476
------------------------------------------------------
I'm sure that's irrelevant
Thanks, Dave
|
|
|
|
|
if it is ATL look for _ATL_MIN_CRT in project setting s and remove it.
Second issue is if you specify msvcrtd in linker settings it is automatically assumes msvcrtd.obj. You have to explicitly specify "msvcrtd.lib"
|
|
|
|
|
I tried FAQ 2.4 in the forum, but I didn't see any of the ATL MIN or CRT items in the preprocessor area of the c\C++ settings. I'm not sure what is wrong.
also, when I type in msvcrtd.lib, I get the following message instead...
Linking...
msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
Debug/StdAfx.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
StdAfx.exe - 2 error(s), 0 warning(s)
|
|
|
|
|
Is there any stable and reliable XML Reader/Writer classes anywhere that could be used around here? My particular need is for something for VC6 actually.
thank you
|
|
|
|
|
Have you looked at the XML DOM?
http://msdn.microsoft.com/library/en-us/xmlsdk30/htm/xmmscxmlreference.asp?
|
|
|
|
|
I have been using microsoft's DOM as well, but recently I've been thinking of using CodeProject's own PugXML.
http://www.codeproject.com/soap/pugxml.as[^]
Its seems to be a lot faster and lighter than the DOM. Doesn't have all the features of the DOM, but probably don't need them in most everyday projects anyway.
"..Even my comments have bugs!"
Inspired by Toni78
|
|
|
|
|
Hi! How can i get IP addresses in a windows application?
-- Steve
|
|
|
|
|
What do you mean by get? If you mean input, I typically use a plain old regular edit box, but there is an ip address edit box control that you could use. Or do you mean get the IP Address of the current machine? Or get the IP address of machines your connected to?
|
|
|
|
|
Try gethostname() to get host name, then gethostbyname() to get host information
g_elbert
|
|
|
|
|
Another solution is getaddrinfo() and getnameinfo().
Kuphryn
|
|
|
|
|
I am trying to use the SystemTimeToVariantTime(...) function so that I can convert systemTime to
a double.
The MSDN says that I need to include the oleauto.h file and
add the oleaut32.lib file to my project.
when I try to include the oleauto.h file I get the following errors.
d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2143: syntax error : missing ';' before 'const'
d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2501: 'EXTERN_C' : missing storage-class or type specifiers
d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2146: syntax error : missing ';' before identifier 'IID_StdOle'
d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2734: 'IID' : const object must be initialized if not extern
d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : fatal error C1004: unexpected end of file found
Any ideas why I get these errors?
thanks,
sj
|
|
|
|
|
what compiler are you using (VC 6, VC7)?
|
|
|
|
|
|
then I need to see full cpp file compilation of which gives an error
|
|
|
|
|
I have an array of structs and the size is [1] so there are 2 places in the array.
Is there anyway that I can make an array with the size of [0] so there will only be 1 instance in it?
thanks,
sj
|
|
|
|
|
Yes when you create an array of size [1] there is only one place in the array, Array[0].
[EDIT]
In a array of size 1 you may not use Array[1].
[/EDIT]
John
|
|
|
|
|
OK, thanks
sj
|
|
|
|
|
The same is true in the general case an array of size N you can index only N elements 0 .. N-1.
John
|
|
|
|
|
|
If you want an array with size 1, do:
struct foo
{
int x[1];
}; An array of size 1 is legal, although not entirely useful.
--Mike--
"So where does that leave us? Well, it leaves us right back where we started, only more confused than before." -- Matt Gullett
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
|
|
|
|
|
Michael Dunn wrote:
An array of size 1 is legal, although not entirely useful.
I was thinking the same thing. A int data type would hold the same data that an array of size 1 would hold. Or even a pointer to an int would do the same thing. I am curios to know, why would someone need an array of size 1?
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Toni78 wrote:
I am curios to know, why would someone need an array of size 1?
Some structures are designed to be a header for a larger data structure. Take this for example
typedef struct
{
UINT nDataSize;
BYTE bData[1];
} MyPacket; Since the data can be of any length (given by nDataSize), we can't specify the size of the array. Therefore, when allocating memory, we just go
MyPacket *packet = (MyPacket*)malloc(nDataLength+sizeof(UINT));
packet->nDataSize = nDataLength; We now have a block of data where the first UINT is the nDataSize field, and the rest is the bData field. We can access it as bData[0] through bData[nDataSize-1] , even though the definition is only of size 1, because we have allocated memory that follows the small structure.
Hope this explains it a bit more
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|