|
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!
|
|
|
|
|
|
you'll need to use LVM_GETNEXTITEM with the LVIS_SELECTED param.
(you should probably say "non-MFC" in your questions. that way i won't give you MFC answers )
-c
Cheap oil. It's worth it!
|
|
|
|
|
Thankyou.
|
|
|
|
|
Is there any way to call a member function from another member function with for_each.... ie:
class foo {
void foo() {
// create vector of ints
std::for_each( vec.begin(), vec.end(), bar );
}
void bar( int val ) {
// do stuff with val
}
}
Ive tried various things for the third param to for_each, eg foo::bar, &foo::bar. It only works when the function is static.
Thanks
Ben
|
|
|
|
|
mem_fun_ref
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
Can you expand a little on your answer? I have never heard of mem_fun_ref, what does it do? How do you use it?
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
It allows you to provide a member function to for_each
www.sgi.com has excellent STL docs, I'd only quote them, so better you go to the horses mouth, so to speak
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|