|
Looking for information relating sending sms messages with a phone over serial port in PDU mode with Visual,can anyone help?;)
nolan
|
|
|
|
|
There's a standard set of AT commands defined precisely to do so. Google for "GSM 07.05" (this is the name of the standard.) The commands are not trivial to use at first, you will have to carefully construct some rather messy data structures, but the standard defines them with great precision.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
Hello!
Is it possible to check if something is typedef'd already?
For example VC++ 5.0 doesn't know the TRIVERTEX structure. A normal #ifndef TRIVERTEX doesn't work in VC++ 2k3 because it has been declared with typedef and not with #define. So VC++ 2k3 will throw a redeclaration error.
Any idea?
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Hmmm.
The simplest suggestion is to check that the header file "guard" that includes that typedef hasn't been defined
eg, in "standardfile.h":
#ifndef STANDARD_FILE_H<br />
#define STANDARD_FILE_H<br />
<br />
typedef TheTypeIWant;
<br />
#endif
and in "yourfile.h"
#ifdef STANDARD_FILE_H<br />
#else<br />
#endif
This would be a somewhat brittle approach though. If this is part of a cross-platform application, you might want to the more traditional approach of defining necessary types within code blocks for the specific platform. If you need to build something with VC++5.0 and 2003, then treat them as specific platforms but via the compiler versions
(I think it's VC_VER, off the top of my head - but it's in the headers - 2003 is VC-VER 1300, IIRC, and VC++5 is 1100)
HTH
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
You can always use
#if VISUAL_STUDIO_NET
__if_not_exists(TRIVERTEX) {
struct TRIVERTEX {
...
}
}
#endif
__if_not_exists and __if_exists are VS.NET-features only I believe, hence the #ifdef VISUAL_STUDIO_NET (which should be replaced with something correct )
--
Must I be the meat in an imbecill sandwich?
|
|
|
|
|
Jörgen Sigvardsson wrote:
which should be replaced with something correct
And what would that correct thing be? _MSC_VER to 8 or so? What is _MSC_VER for VS2k3.NET?
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
#if _MSC_VER >= 1300 should do the trick
--
Must I be the meat in an imbecill sandwich?
|
|
|
|
|
I am wiritng an MFC\C++ code and using DOM while working with a web browswer - the problem is that retrieving string from the html page - they include strange characthers in the fomat %xx - how do I eliminate those?
|
|
|
|
|
They are called escape characters. Any non-alphanumeric is tranlated into the hexadecimal equivalent passed that way. This has to do with the POST/GET Method in HTTP. I had this problem a while ago - if I remember correctly I rolled my own parser - its actually not too difficult.
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
Or you can just use the InternetCanonicalizeUrl() function, which is part of the WinINet SDK.
Ivor S. Sargoytchev
Dundas Software
|
|
|
|
|
Is that the one that is part of the IE 6.0? or is it included in the VC 7.0 now?
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
Requirements:
Client: Included in Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0, Windows Me, Windows 98, and Windows 95.
Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server 4.0.
Version: Requires Internet Explorer 3.0 or later.
Header: Declared in Wininet.h.
Library: Use Wininet.lib.
More in MSDN...
|
|
|
|
|
Are you using B String?
Best Wishes,
ez_way
|
|
|
|
|
Hi,
I created a Process and a child process inheriting the parent's environment variables.
In anothwer application i'm trying to open the process(OpenProcess) and get handle.
How to get the environment variables for this process using the handle?ls help.
getEvironmentvariable() only gets calling process variables.
Thnsks in advnce.
|
|
|
|
|
Hi,
Just can't find the answer of this...
When I want to resize my my Form(no border etc.) I use the following (working) code;
<br />
void __fastcall TMain::ImageMouseMove(TObject *Sender, TShiftState Shift,<br />
int X, int Y)<br />
{<br />
<br />
if(Shift.Contains(ssLeft))<br />
{<br />
ReleaseCapture();<br />
Perform(WM_NCLBUTTONDOWN, HTRIGHT, NULL);<br />
}<br />
<br />
}<br />
Now I want to change the cursor to for example crSizeWE;
I can insert something like this...
if (!overImage) {<br />
Main->Cursor = crSizeWE;<br />
overImage=true;<br />
}
...in the code above and also make an FormMouseMove-event...
if (overImage) {<br />
Main->Cursor = crDefault;<br />
overImage=false;<br />
}
...but that doesn't work when the mouse exits the Form from an Image with the ImageMouseMove-event.
Anybody knows the solution? Am I overlooking something stupid .
Thx a Million, Jeroen.
|
|
|
|
|
[ Jûroehn ] wrote:
Anybody knows the solution? Am I overlooking something stupid
Don't take this the wrong way (as somebody here probably does know how to solve your problem, and I can appreciate you're stuck on something), but this isn't a Borland C++ Builder, it's a Microsoft Visual C++ forum
That also means that people looking for solutions are probably looking for fairly specific solutions - so MFC or straight Win32 solutions, rather than in whatever the C++ Builder library is.
Hope you find your solution.
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
Ian Darling wrote:
I can appreciate you're stuck on something
No offense taken ... BUT:
I use both M$ Vis C++ and BCB, but that doesn't matter, this is a C++ problem .
With just minor adj. this code can be impl. in M$ Vis C++.
Jeroen.
|
|
|
|
|
[ Jûroehn ] wrote:
this is a C++ problem
But you haven't presented it as such, and Borlands library is quite different from MFC, going by the naming conventions, class names, etc. So Borland class library code problems (which is what you appear to have) aren't necessarily C++ ones
[ Jûroehn ] wrote:
With just minor adj. this code can be impl. in M$ Vis C++.
You may well be right (I'm not familiar with BCB as a tool, but I have used Delphi and seen a fair wodge of BCB code as a result). But you haven't presented your problem in a manner consistent with what this forum is about.
Other friendly note, don't use M$ here, given that this is a Microsoft tools oriented site - save it for slashdot and Borland's forums
Cheers,
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
I can say a (whole) lot of things now, but best I won't.
Just want to help people find their solutions and find mine.
|
|
|
|
|
[ Jûroehn ] wrote:
Just want to help people find their solutions and find mine.
And that's great. I was just pointing out that this isn't the right place for BCB questions or answers, because the people in this forum are expecting VC related ones (as you have by now probably noticed this yourself, going by one of the threads you answered a question in).
Believe me, everything I said was intended in a friendly manner, so please don't get huffy over it
Cheers,
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
Hi,
In my server program,i create 1 process and subprocesses for executing a program.I can see threadid for each process.Any number of people can connect to the server at same time.Each user will have their own instance of the program.
Is there anyway i can get the ParentProcess id for each child process?
Find processes which has same threadid?.I set the environment variable ThreadId when each user connect to the server.
Pls help..I'm strugling.
Thnks in adavnce.
|
|
|
|
|
On Windows2000 Platform,
I'd like to hook that screen-saver is starting, and input password to password edit box automatically.
q1. can i hook that screen-saver is starting ?
i have maked function that simulte ctrl - alt - del automatically.
But,
q2. can i input password to password edit box automatically ?
a
|
|
|
|
|
Hi,
I have a class, i don't want any other class to be derived form that.
How can i do this?
Regards
Neha
|
|
|
|
|
Make the constructor private.
|
|
|
|