|
Hi,
I want to access sql store procedure.It has 3 input parameter and 8 output parameters. store procedure also retun the result set. Can you please give me reference of sample code to access store procedure. I am totally new to DB.
Thanks
|
|
|
|
|
Good day,
Im posting this up here bec. there is not much interaction on Embedded/Mobile section but here on Visual C++ a lot of good people come.
Anyway,I'm using Embedded Visual C++ 3.0 on my development. I'am given so LITTLE TIME to do my task, so I'm planning to bring my task at home. Unfurtunately my pc at home is stand-along(doesnt have network -thou I have network card but can't afford yet to have an internet con.). I wanted to run the emulator(Pocket PC 2002) at home but the protocol used is TCP/IP. My Emulator cant connect to the Platform manager do I cant transfer files and debug my program. I've search here in the office on how to connect emulator with active sync (see site below).
.(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devguidesp/html/sp_intro_to_the_ce_emulator_zjht.asp)
However, I dont have that null modem cable nor serial cable at home. Can anybody help me how I could communicate my emulator with EVC3.0?
Any suggestion would be a great Help.
Thanks
|
|
|
|
|
I have no experience in Mobile programming, but if you need network connection you can install Microsoft Loopback driver.
it work like a NIC.
Iman Ghasrfakhri
|
|
|
|
|
Good day,
I have tried to install MS Loopback and yes I do have network connection, however, when I ran the emulator, EVC3 emulator platform manager could not connect.
Anyway thanks Iman, I've learn something.
have a nice day.
|
|
|
|
|
Hi,
I know it's bad practice to disable warnings but I'm fighting my way through lines and lines of irrelevant information in the Output window to find my TRACE output.
Is it possible to temporarily switch off DLL loading messages such as:
'XYZ.exe': Loaded 'C:\WINDOWS\system32\abcdefg.dll', No symbols loaded.
Thanks,
Simon
|
|
|
|
|
I preface my debug statements with asterisks, something like:
***** This is my debug message
That way it stands out above all the other noise.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I have an ATL Composite Control (DLL) that that includes my own control (CMySlider) derived from CSliderCtrl.
Here is the message map of this control.
BEGIN_MESSAGE_MAP(CMySlider, CSliderCtrl)
//{{AFX_MSG_MAP(CPlayerSlider)
ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomdraw)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
When Composite Control is embedded in the Dialog or FormView, CMyControl receives notification, OnCustomdraw gets called and everything draws/works perfectly.
The problem is that when the Composite Control is embedded in HTML page, I’m not receiving notification at all and instead of custom slider I’m getting the standard windows control.
Does anybody know what should I do to make it work on the web page?
Any help would be greatly appreciated.
Thanks,
Lev
|
|
|
|
|
I am sorry ,I use c++ 2years, but i donot know this code
can you tell me
my email is yujian6044@163.com
my name is jerry
BEGIN_MESSAGE_MAP(CMySlider, CSliderCtrl)
//{{AFX_MSG_MAP(CPlayerSlider)
ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomdraw)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
|
|
|
|
|
There are a lot of samples with ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomdraw)on this site. Do a search and ypu find a lot of references.
|
|
|
|
|
I seem to have the same problem, have you found a solution for this one?
|
|
|
|
|
Hello all,
This is my first post to this forum, so apologies in advance for the lack of clarity.
Im trying to assign an unsigned 16 bit word to a char array i.e. two 8 bit single bytes.
my value (u16 sum) contains the word value 24fa which I need to insert into the middle of a char array buff[100]. Obviously, I am concious of the fact that the array is of type char (8 bit), thus any allocation will shorten the original value e.g. buff[0] = sum //buff[0] only contains 0x24
Is there any way to change the word value to two 8 bit singular bytes for storage?
Or is there another way via strcat/memcpy etc..etc
Many thanks in advance.
Stu
|
|
|
|
|
oh me too .I can not know use this forum
my english is poor
haha
I
|
|
|
|
|
fisheryj wrote:
haha
So you find it funny if your english is poor?
-prakash
|
|
|
|
|
simonpearson wrote:
Is there any way to change the word value to two 8 bit singular bytes for storage
BYTE b1 = value & 0xff;
BYTE b2 = (value >> 8);
or
WORD *pw = &value;
BYTE *pb = (BYTE *)pw;
// now, pb[0] is the first byte of your WORD and pb[1] is the second
etc..
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
You can use a union. This union can be used to extract the individual bytes of most of the primitive data types. You can add more types as needed.
typedef union
{
double Double;
float Float;
UINT Int;
USHORT Short;
UCHAR Bytes[sizeof(double)];
} UnionBytes;
UnionBytes ub;
ub.Short = your_short;
your_string[x] = wb.Bytes[0];
your_string[x+1] = wb.Bytes[1];
I know you didn't ask this but you can do something similar to access the bits of a byte :
typedef union
{
UCHAR Byte;
struct
{
unsigned Bit0 : 1;
unsigned Bit1 : 1;
unsigned Bit2 : 1;
unsigned Bit3 : 1;
unsigned Bit4 : 1;
unsigned Bit5 : 1;
unsigned Bit6 : 1;
unsigned Bit7 : 1;
} Bits;
} ByteBits
|
|
|
|
|
Hi
I have a very big problem, if you know the answer please please help me.
I have a .Xls file that it has just one column data ( in the type of float). I have to read these data from Xls file and put them on an Array to use in my program, and after some working, I have to write them to an Xls file(different from the first one). It should be as a function().
I`ll really appreciate for your quick replies.
This is my email: z_eftekhari@yahoo.com
|
|
|
|
|
Em, try type some key word of your problem on google.
Possiblely you'll find your answer.
that's what i do most of the time.
|
|
|
|
|
The following VB code is FYI, you must change it to VC
////////////////////////////////////////////////////////////////
Public Function SheetToArray(strFilename As String, intSheetIndex As Integer, intRows As Integer, intColums As Integer, strArray() As String) As Boolean
'Declare objects
Dim excapp As Excel.Application
Dim excbook As Excel.Workbook
Dim excsheet As Excel.Worksheet
ReDim strArray(1 To intRows, 1 To intColums)
Dim intLoopR As Integer
Dim intLoopC As Integer
'Create objects
Set excapp = CreateObject("Excel.application")
Set excbook = excapp.Workbooks.Open(strFilename)
Set excsheet = excbook.Worksheets(intSheetIndex)
'Read the table and fill the array
For intLoopR = 1 To intRows
For intLoopC = 1 To intColums
strArray(intLoopR, intLoopC) = excsheet.Cells(intLoopR, intLoopC)
'excsheet.Range(excsheet.Cells(1, 1), excsheet.Cells(5, 5)).Select
Next intLoopC
Next intLoopR
'Close Excel
excbook.Close
excapp.Quit
'Clear the objects
Set excapp = Nothing
Set excbook = Nothing
Set excsheet = Nothing
SheetToArray = True
Exit Function
End Function
Lane
China
|
|
|
|
|
I know of two ways. The first is to use Excel's ODBC driver. The second is to use Excel Automation. In my opinion, the ODBC method would be easier for what you are doing.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
In my Vc++ dialog application , i need to launch the device manager . Is Createprocess the proper way to launch it or is there an alternative ?
Engineering is the effort !
|
|
|
|
|
you are trying to start a control panel applet i.e. a .cpl file.
I do not know (forgot) how to launch a .cpl file but you should find few expamples here or on the net on how to launch any .cpl file.
you can google it as Here[^]
-prakash
|
|
|
|
|
Why not use
rundll32.exe devmgr.dll DeviceManager_Execute
with CreateProcess() ?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
hi, all
I kinda fixed the issue but still not sure what's wrong with the previous method.
it was having access violation at this point:
void CSurchrgDlg::Exit()
{
if( !m_bCanceled )
{
.....
}
CDialog::OnCancel();
}
now I used "PostMessage( cDlg->GetSafeHwnd(), WM_QUIT, 0, 0 );" replaced the exit funtion at the end of RUN. seems to work.
OR I used PostMessage(WM_QUIT); to replace CDialog::OnCancel(); would work, too.
could someone tell me what's wrong with the calling the CDialog::OnCancel();? Thank you for your time!
-- modified at 17:59 Monday 3rd October, 2005
|
|
|
|
|
If you are multithreading you cant call thouse funtions from another thread.
I dont know if I guessed it rite.
-prakash
|
|
|
|
|
Hi for all
I would like to know what is these types of variables
HDC, HWND, HGLRC.
Thanks a lot
|
|
|
|