|
this seems kinda strange to me.. if you have to double click on the .exe to make it run, and all you want it to do is press enter does that seem harder than just pressing enter?
in any event, even if you do send a message that enter was pressed it would have to be done in a specific window, so you would have to figure out which window to send the enter keypress to (i think)..
maybe some more details or a better explanation?
-dz
|
|
|
|
|
Hi,
I want to write some code to link with my mobile phone. It is a Nokia 8210 and i have the serial data cable. I am fed up with the poor software suplyed and would like to send & receave text messages from & to my pc screen via the phone. Being able to up & down load logo's & ring tones would be a bonus. Does anyone have any pointers?
- How do i do I/O with RS232 com1?
- What does the phone require e.g. nokia commands?
Thank you in advance.
An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky
|
|
|
|
|
I have experience fatal error C1001: INTERNAL COMPILER ERROR
when I tried to implement my code in OOP in VC++ 6.0. I have
tested fine in normal C++ code.. here's a bit of the code.
#include <complex>
void Utility::manexp(complex<double> c,complex<double> &mantss,int &iex)
{
mantss=c*pow(10,-iex);
}
There are something wrong with the multiplication here. I have tried
to take out the multiplication.. and there is no complier error.WHat is happening here? Just the compiler freaking me out here?
|
|
|
|
|
try writing the function like this:
void Utility::manexp(complex c,complex *mantss,int iex)
{
*mantss=c*pow(10,-iex);
}
|
|
|
|
|
Thanks for your reply. I have solved the problem for now.I think there is some problems with the complier in recognising what the type pow is supposed to be. I have used a dummy variable of double type. Then passing the pow value to that dummy and multiply it to mantss. It works this way as it make the compiler to recognise it's a double type.
|
|
|
|
|
Hi,
I have implemented some command line functions for my VC++ application which basically performs some serial communication functions with a device.
How do i debug the command line functions?
Thanks,
ravi.
|
|
|
|
|
in the Project / Settings / Debug dialog, there's a place for you to enter your command line.
-c
Cheap oil. It's worth it!
|
|
|
|
|
Visual Studio 6sp5 (c++) won't accept to edit resource strings wit a certain length. Is Windows originally suffering from this weakness, and making this limitation in VS necessary, or it is just a weakness?
Hugo
|
|
|
|
|
I think it is Visual Studio problem. I have the same problem with some very long SQL commands.
You can open *.rc files in any text editor and edit them. Resouce compiler accepts longer strings than VS. Sorry, I do not know limits.
|
|
|
|
|
MSDN says a string "must be no longer than 4097 characters".
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
How can 9 bit data be transmitted and received serially? I worked with 8 bit data before, but how does it work for 9 bits? Thanks very much in advance!
|
|
|
|
|
How can 9 bit data be transmitted and received serially? I worked with 8 bit data before, but how does it work for 9 bits? Thanks very much in advance!
|
|
|
|
|
If you were to recieve 9 bits, can't you just give it a short int (2 bytes) and then only read 9 bits of the value?
|
|
|
|
|
If I use short int and ReadFile() to read data from the port, it will be set up to read two bytes at a time. But the transmitting side is sending 9 bits of data only (with header and stuff, of course). Is it possible that I can read the 9th bit as a parity bit? But the thing is, I can't find any functions in VC++ to check for value of the parity bit or parity error-checking. If anyone knows about which function can perform the above, please post it. I greatly appreciate it. Thanx!
|
|
|
|
|
If you can read the 2 bytes in 2 characters
- if the 9th bit is the last bit (LSB) of second byte.
then logical and with 0x01 and if it's 0 then ur 9th bit is 0,
else if it's 1 - 9th bit is 1.
example : firstbyte = 0xf4
secondbyte = 0x01 (it can be either 1 or 0)
if(secondbyte & 0x01)
ninthbit = 1;
else
ninthbit = 0;
hope this helps..!
if you have further queries,post them..
thanks,
ravi
|
|
|
|
|
Hi,
How can i convert make file to a .dsw or .dsp file?
Thanks
Neha
|
|
|
|
|
I think you can try opening the MAK file.
can refer to documentation in MSDN
title : "Port a Project Made with NMAKE to the Development Environment"
From the File menu, click Open Workspace.
The Open Project Workspace dialog box appears.
In the Files of type drop-down list, select All Files (*.*) to display all files.
Select the drive and directory containing the previous makefile.
Select the makefile from the list of files and click OK.
Hope this helps.
thanks,
ravi.
|
|
|
|
|
I have created a Win32 program using Visual Studio .NET which I would like to put on another Win2K machine along with the debug symbols (.PDB file). I am trying to use the Dr Watson log to identify where a program is crashing but it refuses to include symbol information. The same setup on an WinXP workstation works fine and the Dr Watson log correctly gives me the function name that includes my deliberate bug.
Can anybody give me some information or point me at some information about about installing exe's and debug symbols. This is how we hope to diagnose problems on customer sites so I would really appreciate any information on the subject.
Steve.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
find the article on this site about 'MiniDumps'. i think it's exactly what you want.
-c
Cheap oil. It's worth it!
|
|
|
|
|
Thanks for replying. The article looks very interesting!
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
i want to change my dialog font's color!
|
|
|
|
|
Override the Dialog's OnCtlColor and use the SetTextColor function
|
|
|
|
|
It's in a List Control (the ones you can add on a dialog in the resource editor)
Thanks
|
|
|
|
|
from MSDN:
CListCtrl* pListCtrl = (CListCtrl*) GetDlgItem(IDC_YOURLISTCONTROL);
ASSERT(pListCtrl != NULL);
POSITION pos = pList->GetFirstSelectedItemPosition();
if (pos == NULL)
TRACE0("No items were selected!\n");
else
{
while (pos)
{
int nItem = pList->GetNextSelectedItem(pos);
TRACE1("Item %d was selected!\n", nItem);
}
}
-c
Cheap oil. It's worth it!
|
|
|
|
|