|
There was no MS access software installed in that PC, so gave a try with the available software.
|
|
|
|
|
I use ODBC to access databases in my C/C++ coding and in my PowerBASIC coding. Whenever I'm having difficulties with anything, I call SQLGetDiagRec(), which returns error info. I can provide for you a bit of code to try it out. Let me know.
|
|
|
|
|
divya03 wrote: Ya I searched. everywhere they are suggesting to install the driver using installation CD which currently I'm not able to as I do not have a CD..
If you are actually using a legitimate licenced version of Embedded Standard then someone inside your organization builds the OS using the "Target Designer". You are given all the tools necessary to build and customize the embedded operating system.
Windows Embedded Standard 2009 Step-by-Step Deployment[^]
Btw, the fact that you are asking this question strongly implies that you may be using a pirated or unlicensed version of Embedded Standard Windows 2009.
All of the database packages are selectable in the "Target Designer".
Best Wishes,
-David Delaune
|
|
|
|
|
I need to create a 'input' parameter in method of my web service.
I am writing a VC++ program where I am calling my vb web service method, using http request(SOAP packet). While calling this web method, return SOAP packet tells me only 'out' parameter(being generated by web method). I digged on google, came to know that this 'input' parameter may be added by json, XML scripts...
There might be some java expert here, who can answer my question...
-Pankaj
|
|
|
|
|
This is not a question for Java experts, you are talking about javascript which is completely different. You also need to provide better details of what your code is doing, and where the error occurs.
|
|
|
|
|
Dear,
I explain you whole condition of code...
<s:element name="ConvertTemperature"> <s:complextype> <s:sequence> <s:element minoccurs="1" maxoccurs="1" name="dFahrenheit" type="s:double"> <s:element name="ConvertTemperatureResponse"> <s:complextype> <s:sequence> <s:element minoccurs="1" maxoccurs="1" name="ConvertTemperatureResult" type="s:double"> ... – pankaj 16 hours ago
I want to add an input parameter('zipcode' from VC++/'InParam' in vb web method) in web method...though I am trying to send that parameter, in my call of C++ SOAP packet..but this is being taken as 'Nothing'(InParam) by web method..
Though I made a sample json file as microsoft says...social.msdn.microsoft.com/Forums/en-US/… how to fix that in my vc++ code, after sending 'POST' request of my http packet
in WSDL..Web Service.vb..
Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols <webservice(namespace:="tempuri.org ")="">; _ <webservicebinding(conformsto:=wsiprofiles.basicprofile1_1)> _ <global.microsoft.visualbasic.compilerservices.designergenerated()> _ Public Class WebService Inherits System.Web.Services.WebService <webmethod()> _ Public Function ConvertTemperature(ByVal InParam As String) As String Dim Temp As Integer Temp = CInt(InParam) + 20 Return CStr(Temp) End Function End Class – pankaj 15 hours ago
float CallWebService(LPCTSTR szZipCode) {
CHECK_HR(hr);
VARIANT vRequest; vRequest.vt = VT_BSTR; vRequest.bstrVal = szRequest.AllocSysString();
hr = spXMLHTTP->setRequestHeader(_bstr_t(_T("Content-Type")), _bstr_t(_T("text/xml"))); CHECK_HR(hr);
>send(_bstr_t(szSOAPReq)); CHECK_HR(hr); if(200 == spXMLHTTP->status)
_bstr_t bstrResponse = spXMLHTTP->responseText; MessageBox(0, bstrResponse, "TEST", 0); AfxMessageBox(bstrResponse); }
from web method..vb.. <webmethod()> _ Public Function ConvertTemperature(ByVal InParam As String) As String Dim Temp As Integer Temp = CInt(InParam) + 20 Return CStr(Temp) End Function....this parameter "InParam " is showing "Nothing" at run time..any help would be highly appreciated..
How to run json script from c++ or how to create a xml script to make provsion for 'input' parameter?
Can any java,C++ expert solve prolem of my code
-Pankaj
|
|
|
|
|
Sorry, but I cannot understand any of that. And like I already told you, this has nothing to do with Java.
|
|
|
|
|
Dear Richard,
Please give a look to my problem. as mentioned above.
-Pankaj
|
|
|
|
|
change this line in wsdl as "
type="xsd:string"/ "go instead of "xsd:double"
|
|
|
|
|
Did you create this web service/method?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Yes..I created this web service...by VS->New Web->Added Web service->vb Web Method...
Do you have any suggestion for my project..?
Pankaj
|
|
|
|
|
Hi
While trying to get a better understanding of my exceptions I down loaded the demo
" Quote: How a C++ compiler implements exception handling
Well first I feel very good the I spent $700 to get the intel C/C++ compiler
the demo had inline asm code and the Microsoft compiler only supports thunder 32 bit code
but intel supports _asm with X64 I changed the "E" register to "R"
Was able to build everything until the demo
I got a number of externs I paste just one example but I am sire they are all related to cout
Quote: error LNK2019: unresolved external symbol "public: __cdecl std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QEAA@H@Z) referenced in function "public: void __cdecl std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QEAAXXZ)
1>MyExcHandler.lib(myexchandler.obj) : error LNK2001: unresolved external symbol "public: __cdecl std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QEAA@H@Z)
doing research seems the .lib msvcprtd or msvcprt.lib for release ( did a dumpbin on the lib)
I included in my library directories
however I am still getting externals
|
|
|
|
|
If these externals are related to std::cout then they should automatically get resolved by the STL libraries, which generally get automatically included in your project. However, since you are using the Intel compiler, it may be that you need to include some extra libraries that Intel provides.
|
|
|
|
|
Are you absolutely sure you did the Linker >> Input >> Additional Dependencies right? That looks suspiciously like what it is telling you or it's static versus dynamic linking but that usually presents slightly different.
In vino veritas
|
|
|
|
|
Thanks I had downloaded the sample code "How the compiler implements exception handling"
Seems like SEH is only use full for 32 bit code as the EXCEPTION_REGISTRATION handler pointer
is a DD 4 bytes and I am running a 64 bit project
|
|
|
|
|
ForNow wrote: Seems like SEH is only use full for 32 bit code as the EXCEPTION_REGISTRATION handler pointer
is a DD 4 bytes and I am running a 64 bit project
No absolutely not,
That field should be defined as a PEXCEPTION_ROUTINE callback which will be quadword pointer on a 64 bit platform. Sounds like you are looking at some 32 bit instructions in your sample.
Best Wishes,
-David Delaune
|
|
|
|
|
Thanks this is in regards to the exception I'm getting access violation it happens intermittently
When it does the Debbuger gets control and points to ntdll looking at the call stack doesn't point me back to anywhere in my code. I was looking for a really low level Exception handler that might catch it earlier.
The code for the SEH in all the examples I have seen has inline Assembler
However I do have the intel compiler which lets me use _asm for 64 bit code
Thanks
|
|
|
|
|
Hi,
The unresolved symbol std::_Lockit appears to be from the Microsoft implementation of checked iterators[^] in our STL implementation.
So this implies that you are #including the Microsoft STL headers and trying to link with the Intel Standard C++ Library[^].
Fix your broken #include and library paths.
Best Wishes,
-David Delaune
|
|
|
|
|
I have a templated class that is based on string or wstring, and most things are easy as the basic_string contains sufficient operators and methods to manipulate the text. However, one thing I cannot get round is including character constants inside the template, as below:
template <typename T>
class Tokenizer
{
typedef typename T::size_type _Mysizt;
T strText;
T strFilter;
_Mysizt offset; _Mysizt index; _Mysizt length;
public:
Tokenizer(T strText, T strFilter)
{
}
T Next(bool bTrim)
{
T strToken;
if (bTrim)
{
offset = strText.find_first_not_of(' ', offset);
}
}
return strToken;
}
I am sure it must be possible (OG, Po'H, SB), but my reading of the documentation and samples has not helped. So what (obvious) did I miss?
[edit]
While David Crow's suggestion works for a character constant, it will not work for a string like:
offset = strText.find_first_not_of(" \t", offset);
[/edit]
modified 3-Jul-17 4:43am.
|
|
|
|
|
I'm not sure I entirely understand the problem so my suggestion may be as valuable as a $3 bill. Can you use:
offset = strText.find_first_not_of(0x20, offset);
Or could you add the "search for" character as part of the constructor?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Thanks, that did work, and your suggestion about the constructor I already tried. However, I am still wondering if there is any way to include string or character literals in such a template.
|
|
|
|
|
Presumably your goal is to use a set of characters rather than one character for your separator.
And the classes in use do not provide that functionality.
I believe tokenizers iterate through the string character by character, perhaps for efficiency and perhaps to avoid the problem you have.
If you want to avoid iteration then perhaps strtok() might solve it.
|
|
|
|
|
Thanks, that is the conclusion I came to, and I resolved the issue with a slightly different implementation. I was really just trying to learn a bit more about templates, and wondered if there was any provision for automatically converting constant strings between ASCII and Unicode. It's obviously something to be aware of, and avoid.
|
|
|
|
|
Welcome guys!!!
I am a beginner in C++ and I have a little task to solve. Ihave a file .txt like this :
net.txt - Google Drive[^]
And i want make tables that for each number gives all value about the nuber from data
Something like this :
Number9
from value
1 0,70606
3 0,99605
11 -0,28155
12 0,58371
15 0,70069
17 -0,95633
18 0,84633
19 0,77246
25 0,49101
30 -0,76256
31 0,77975
34 0,73573
44 -0,6106
45 -0,91379
51 0,25814
53 -0,59725
54 -0,78294
58 0,13108
70 -0,02528
73 0,37034
75 0,23552
76 -0,54187
78 0,77419
79 0,4681
80 -0,01923
83 0,39902
85 0,82687
I will be grateful for help or advices
Thanks !!!!
|
|
|
|
|
Artur Grabowski wrote: I will be grateful for help or advices
We're willing to help with good advice. But you need to ask a specific question.
What have you tried? Where does it go wrong? Are there any error messages? Post a snippet of the text file you're using and the relevant portion of your code.
The difficult we do right away...
...the impossible takes slightly longer.
modified 2-Jul-17 9:07am.
|
|
|
|