|
Hi Dear,
I am building my application in visual studio 6.0 however I am getting the following error. Can you please help me resolve this.
BSCMAKE: error BK1503 : cannot write to file 'TouchDbg/test.bsc'
Thanks
-- modified at 2:38 Friday 17th March, 2006
|
|
|
|
|
Close and start again. Or click on clean.
Nibu thomas
Software Developer
|
|
|
|
|
I have tried to clean and than rebuild all however error is still coming.
|
|
|
|
|
Close VS and delete the bsc file.
Nibu thomas
Software Developer
|
|
|
|
|
Hi,
I am receiving 60 BYTE type data to the serial port from an external device.
I want to convert the 2 consequent received bytes each to a 16 bit word and store it in excel file?
Does anyone have Idea , how to do this?
For example,
i received 60,25 consequently to the serial port. Now i have to store 6025 in the Excel sheet.
Thanks,
Please help me out to solve this problem.
Chetan.
Helping others satisfies you...
|
|
|
|
|
Like this? (It's one way to do it, there are other ways as well)
unsigned char serialBuffer[x];
// Assume serialBuffer contains two chars with "ASCII" value 60 and 25 (decimal).
unsigned int word = (((unsigned int) serialBuffer[0]) * 100) + (unsigned int) serialBuffer[1];
// Now word is 6025.
// if you want a char[]
char chValue[10];
itoa(word, chValue, 10);
// Now, chValue contains "6025"
|
|
|
|
|
I assume that by 60 and 25, you mean the hex values 0x3c and 0x19.
If the byte stream arriving is ordered as 0x3c, 0x19, ..., and you want to interpret that as 0x3c19, then you have a big endian stream:
typedef unsigned char byte;
typedef unsigned short word;
const byte low = 0x19;
const byte high = 0x3c;
const word merged = (word(high) << 8) | low; However, since you want to store it as 6025 in Excel, I assume that you by that mean the string "6025". Otherwise you need to state your need better. To get "6025", you can do this:
const char buffer[33];
const std::string left(_itoa_s(high, buffer, 33, 10));
const std::string right(_itoa_s(low, buffer, 33, 10));
const std::string merged(left + right); Note: this of course come without warranties, it's the concept that's important here.
--
The Blog: Bits and Pieces
|
|
|
|
|
Hello
Can i hide all my desktop icons, wallpapers, taskbar etc using c++. Actually i want to clear my desktop.
Thank you.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
static HWND hprg = ::FindWindow(_T("Progman"), NULL);
static BOOL doShow = FALSE;
if(hprg!=NULL)
::ShowWindow(hprg, (doShow==TRUE?SW_SHOWNORMAL:SW_HIDE));
static HWND hshell = ::FindWindow(_T("Shell_TrayWnd"), NULL);
if(hshell != NULL)
::ShowWindow(hshell, (doShow==TRUE?SW_SHOWNORMAL:SW_HIDE));
doShow = !doShow;
But the problem with this is if you press window key + D (Shortcut for show desktop), then it displays all the desktop icons(Provided your application is not in focus.) but it works fine with taskbar.
Do remember to set these settings back to normal once the application exits.
Nibu thomas
Software Developer
|
|
|
|
|
Thank you Nibu! it works perfectly.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Aqueel wrote: Can i hide all my desktop icons, wallpapers, taskbar etc using c++. Actually i want to clear my desktop.
i am little confused your want to hide all item from your desktop or delete all icon from desktop!..
if you want to hide all item from the desktop you can try Nibu's method.. or create a your desktop using CreateDesktop api
|
|
|
|
|
No i just wanted to hide them. So Nibu's method works perfectly.
Thank you.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Hello
i am working with c++.I want to ask if i can calculate time to execute some intructions. Actually i want to check how much time a piece of code is taking to execute.
Thank you.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
use profile in the VC++.
Simply if u want to know the time taken for some statements put OutputDebugString()in the before and end afetr the stement. Now using Debug viewer u can see the time taken
nave
|
|
|
|
|
Aqueel wrote: Actually i want to check how much time a piece of code is taking to execute.
try profiler or GetTickCount api!
|
|
|
|
|
Dear friends,
I am working on vnc based application. I am encountering a problem regarding unable to establish connection via http port. If you know how these thing happen, kindly give me a reply.
regards
kedar
Girish
Software Developer
|
|
|
|
|
I wonder how to write the app with non-rectangular window( like winamp ...). Can someone tell me about that.
Thanks!
|
|
|
|
|
|
Hello all,
I am working in VC++ 2005. In this i want to make one dll. But for that i use one already exist ".c" file. Now when i include a header file for that & call one of function it will get me the error of ollowing type.
error C3861: 'function_name' : identifier not found
Is it possible that i use ".c" in ".cpp" file? When i edit in file the editor give me the complate definetion of that function. So why it will gove me the complie time error.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Divyang Mithaiwala wrote: Divyang Mithaiwala
System Engineer & Software Developer
Hmm...
=A-L-J-E-C-H-I-N=
|
|
|
|
|
|
Hi Divyang,
You can't just call C functions from C++ functions. It has something to do with the calling conventions. All you have to do is tell the C++ compiler that the functions are C functions not C++ functions. There are a few ways of doing this but the way I normally do it is:
extern "C"
{
#include "myCPrototypes.h"
}
This way the compiler knows that the functions in the header are all C functions and will generate the calling code appropreately.
regards,
Rich
"Programming today is a race between software engineers striving to build bigger and
better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
|
|
|
|
|
try extern 'c' { /*put your C code in this */ } syntax
|
|
|
|
|
Hi
i want to know how can i convert a "double value" to "unsigned int" without possible loss of data.
unsigned int numr;
double num1;
numr= fread (buff,sizeof(char),num1,pFile);
alok singh chauhan
|
|
|
|
|