|
Hi there
One of my users is getting the following error when trying to pull
back an XML document from my web service
The xml page cannot be displayed
Cannot view xml input using style sheet. Please correct the error and then click the Refresh button, or try again later.
xml document must have a top level element. error processing resource
this is only occuring for one user, all other users have no problems accessing the
same xml query. And results are returned OK
If i go directly to the web service as well and add in the parameter manually it works fine
and for all other users, i just dont know why its only this user. Other XML querys that this user performs are successfull, but not this one
im using VC and c# for the web service on VS2003
please help
si
|
|
|
|
|
I create splitter,
in them - form,
in them - flex-grid control,
in them - check-box.
That check-box begin to react if I click on form somewhere - once.
Why so happens?
And how to make check-box clicked from first click?
thanks.
|
|
|
|
|
May be the first click is used to set the focus on the formview.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Yes, it was true, - to set it for grid.
|
|
|
|
|
There is beta version of Visual Studio 8.0 to test,
I need people opinion - does it worth thing,
in comparison with 7.1 version.
What is advantages and disadvantages ?
does enterprise code templates- "best practices" templates -
worth thing in real coding work?
thanks you
|
|
|
|
|
Hi,
I am trying to develop a samll software which will interact with USB storage devices. I am able to get the USB devices add/remove notification and can also get the type of device , but i am unable to get the device name so can some one help me.
I am using WindowsXP as a development platform.
Thanks,
Liaqat
|
|
|
|
|
i hv used inline assemble which hv been showed below:
do{
for(int test=0;test<5000;test++);// reach the high output to send a read data properly
__asm{//the normal case which used to transfer the data
///*
mov dx,portaddress
mov bx,data
mov cx,i //need to shift it to the large register
bt bx,cl
jc Current_Bit2_Is_1
Current_Bit2_Is_0:
/* mov al,00000010b
mov cx,10h
loop_label7: out dx,al
loop loop_label7*/
mov al,11111101b
mov cx,25h
loop_label8: out dx,al
loop loop_label8
mov al,11111111b
mov cx,35h
loop_label9: out dx,al
loop loop_label9
mov al,11111101b
mov cx,25h
loop_label7: out dx,al
loop loop_label7
jmp END2 //jump without any condition
Current_Bit2_Is_1:
mov al,11111101b
mov cx,25h
loop_label1: out dx,al
loop loop_label1
mov al,11111001b
mov cx,35h
loop_label2: out dx,al
loop loop_label2
mov al,11111011b
mov cx,35h
loop_label3: out dx,al
loop loop_label3
mov al,11111001b
mov cx,25h
loop_label4: out dx,al
loop loop_label4
mov al,11111101b
mov cx,25h
loop_label5: out dx,al
loop loop_label5
END2:
}
for(test=0;test<7000;test++);
__asm{
mov dx,portaddress
mov al,11111101b
out dx,al
}
i--;
}while(i>=0);
if i just use like this then no problem. but when i use inline assemble in another part of my program, it always make the program hang.
if(i==-1){
__asm{
mov dx,portaddress
mov bx,data
mov al,00000010b
mov cx,10h
loop_labelA: out dx,al
loop loop_labelA
mov al,00000000b
mov cx,15h
loop_labelB: out dx,al
loop loop_labelB
mov al,00000010b
mov cx,10h
loop_labelC: out dx,al
loop loop_labelC
}
}
this one is just under the while statement.....but it always make the program hang. i really dont know what is the problem in here.
is there anyone know how to solve it?
thank u in advance!!!!!
|
|
|
|
|
Did you consider that the loop variable test may be optimised to register variable and your inline code is currupting it.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Hello, dear sirs !
There is a class CMyWnd1 : public CWnd.
This class is imported from MFC-Extension DLL to my application.
(this DLL I created by myself and use successfully).
In application I try to create new class CMyWnd2, derived from CMyWnd1.
In "CMyWnd2.cpp" I wrote:
BEGIN_MESSAGE_MAP(CMyWnd2, CMyWnd1)<br />
ON_WM_SIZE()<br />
ON_WM_PAINT()<br />
END_MESSAGE_MAP()
and also in "CMyWnd2.h"
DECLARE_MESSAGE_MAP()
But compiler informs me about the following error:
CMyWnd2.obj : error LNK2001: unresolved external symbol "protected: static struct AFX_MSGMAP const CMyWnd1::messageMap" (?messageMap@CMyWnd1@@1UAFX_MSGMAP@@B)
It's seems like difficulties during try to import MESSAGE_MAP of the base class CMyWnd1 from DLL.
What's the problem ? I can't understand ! I need your advice !
|
|
|
|
|
Hi,
if i just buy a VC++.Net but not the whole Visual Studio.Net
package, can I still use it to develop software for Pocket PC 2003/Smartphone by using the compact framework extension ?
and can I develop software on PocketPC/Smartphone by using
C# ?
Thanks
|
|
|
|
|
Hi all,
I have three questions,
1. What are the limitation of C# compared to C++.net ?
2. will MFC in VC++ be obsolete in future ?
3. Do we need to obsfucate the code in C++.net as in C# for
protecting the reverse engineering of software code ?
Thanks
|
|
|
|
|
C++ can be still written in a unmanaged version. Visual Studio even contains a newer version of the MFC. (Albeit this if thought as the last version ever). This produces pure machine code as before.
Also, you can use the managed extensions of C++ and you have a(ugly and uncomfortable) way of programming .NET in your known language. This produces Intermediate language code that easily interoperates with any DOT-NET language.
C# is fairly complete language, much as Java is. It is still lacking templates, so you do not have typesave containers easily. Otherwise, there is about nothing you can do with C++ that you can't with C#.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Hello!
anyone knows where to search for some code for a BTree or a B+ Tree ??
started it on my own.... and it don'r realy work
thx.
|
|
|
|
|
|
OK OK - has been a while since I did any MFC - have a dialog app, and when I click the close button (or the kiss in the corner as my old lecturer used to call it!), it seems to be hooked in to the "Run" button that I have created...
Anyone know how to hook it into my "OK" button? I know that it's got something to do with the .rc file, but can't for the life of me remember!!
First one to answer get to call me names - unless of course it's SteveS...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
RichardGrimmer wrote:
First one to answer get to call me names
i willl call you anyways - Plonkeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer
Check the message map in your .cpp file. there you will get some clue.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Dagnabbit - should've expected that one lol!
That's where I started looking - can see where the "Run" button is triggered, but can't see anything that would correspond with the control box clicks - the OnSysMsg handler is a bit...well...empty...
Have tried explicitly adding a Message handler to handle WM_CLOSE msgs (in the dialog class), but still no joy....
Suspect that it might be something to do with the resource file...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I belive that resource has nothing much to do with the execution of the code.... humm sometimes these messagemaps works out of any logic.
Remove the button that causing the problem and then try.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
See what you're saying - as it happens, have done a quick hack to get it working - handling the WM_CLOSE, and calling the close function explicitly.....ugly but it works (bit like me ha ha!)
Thanks for the help though....
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
No intention of calling you names (this time).
When you click the [x], you should get (WM_SYSCOMMAND, wParam = SC_CLOSE). You're also getting, courtesy of the framework, WM_COMMAND,IDCANCEL for a dialog box, whereas if you press [enter] you get WM_COMMAND,IDOK.
That any help?
(I know it's late, but I do spend some time away from a computer...)
Steve S
|
|
|
|
|
Dear all,
I am using Visual C to collect data sent through Cypress usb communication every second. I am using the some code like "DeviceIoControl(...,IOCTL_EZUSB_BULK_READ)"...
In my Visual C program, I include a file "ezusbsys.c" written by cypress to simplify my code. This is some of the code in "ezusbsys.c" file:
/* Ezusb_KdPrint (("enter Ezusb_CallUSBD\n"));
pdx = fdo->DeviceExtension;
// issue a synchronous request (see notes above)
KeInitializeEvent(&event, NotificationEvent, FALSE);
irp = IoBuildDeviceIoControlRequest(
IOCTL_INTERNAL_USB_SUBMIT_URB,
pdx->StackDeviceObject,
NULL,
0,
NULL,
0,
TRUE, /* INTERNAL */
&event,
&ioStatus);
// Prepare for calling the USB driver stack
nextStack = IoGetNextIrpStackLocation(irp);
ASSERT(nextStack != NULL);
// Set up the URB ptr to pass to the USB driver stack
nextStack->Parameters.Other
*/
After acquiring a set of data for 1 second, signal processing & classification takes place. Although I can use Visual C to do all these, it is much more easier to use Matlab to do the signal processing & classification. However, I found out that I could not call Windows API function straight from Matlab. May I know waht should I do?
Thanks a lot for reading & thanks 4 ur help
Yours truly,
Einly
Einly
|
|
|
|
|
PNF files (the Precompiled INF files that Windows creates upon installation) are heavily encrypted. Does anyone know how to decrypt them so I can analyse the contents?
Is there a C++ method/function or a decryption executable I can use?
|
|
|
|
|
I'm working a fairly simple project. What I need help with is checking the combo box against the .mdb file to get whats in field2 of that specific part. I don't quite know how to even compare the combo box and .mdb file. I can call the file and output the first part of it but thats about it. Thank you for your help and time.
Sincerely
David "Ice"Berg
quake3b@yahoo.com
P.S. Sorry if I don't understand right away I've taught my self how to program.
|
|
|
|
|
you can query the data from the table
"SELECT FILED2 FROM TABLE_XYZ"
and then look at the value returned in the recordset object. depending on the value , you can set the ComboBox
|
|
|
|
|
Sweet Thank you for your help.
|
|
|
|
|