|
Look at the documentation for WSACleanup, in the section called Requirements you will find a library that is required.
|
|
|
|
|
I have this library.
I looked for other library and I tried it also and same problem.
Error 1 error LNK2019: unresolved external symbol _sendto@24 referenced in function "public: void __thiscall CServer::Handle_Connection(void)" (?Handle_Connection@CServer@@QAEXXZ) CServer.obj Server
Error 2 error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "public: void __thiscall CServer::Handle_Connection(void)" (?Handle_Connection@CServer@@QAEXXZ) CServer.obj Server
Error 3 error LNK2019: unresolved external symbol _closesocket@4 referenced in function "public: void __thiscall CServer::Handle_Connection(void)" (?Handle_Connection@CServer@@QAEXXZ) CServer.obj Server
all the communication functions????
|
|
|
|
|
ytubis wrote: I have this library.
'Having' it is not enough. Did you add it to the "Additional Dependencies" in your linker settings ?
|
|
|
|
|
This one I do not know how to do?
Can you help me with this?
Where and what do I need to do?
Thanks 
|
|
|
|
|
Open your project settings, go to the "Linker" category ->"Input" -> "Additional Dependencies" and there type the name of the required library (which is specified in the documentation).
|
|
|
|
|
This was one of the reasons I was slow to adopt MSVC. Makefiles are very clear, all the information is in one place, and their structure isn't that complex. Beats the hell out of,
"Did you scroll down the menu to the third setting,
pop up the second menu, choose Settings, then click on the color you wanted?"
|
|
|
|
|
That's just a matter of taste. The problem with makefiles is that you have to remember all the commands by heart (or look into a reference). When you have a UI that displays the settings, well, you just have to fill the one you want to. And they are grouped by category which makes things easier.
I much prefer this compared to makefiles.
bulg wrote: "Did you scroll down the menu to the third setting, pop up the second menu, choose Settings, then click on the color you wanted?"
It looks complicated but it's not: the reason is that everything is grouped into categories/sub-categories. What would you prefer: have a loooooong list of 200 entries or having everything grouped in categories ("Linker", "C/C++", ...) ?
|
|
|
|
|
ytubis wrote: and same problem.
Error 1 error LNK2019: unresolved external symbol _sendto@24 referenced in function "public: void __thiscall CServer::Handle_Connection(void)"
No, that's NOT the same problem. It is another link error but now it's a different symbol. If you don't know how to resolve link errors then you need to return to basic C++ studies.
Resolving link errors has nothing to do with Communications Problems, they are C++ beginner issues.
THEREFORE, building a client server system is far beyond the capacity of someone that can't resolve link errors.
|
|
|
|
|
The drop down list will not display any data, I have drop down list sized big and with only a 2 or 4 rows of data. Created a new project and it works there, so must be some setting.
Did trying populating list with:
SendDlgItemMessage(hwndDlg,IDC_COMBO_NDF,LB_ADDSTRING ,(WPARAM)0,(LPARAM)"ZZZ");
But that did not work either and yes with change the properties where owner controled this.
Does anyone have any ideas?
|
|
|
|
|
Don Jones BNYMellon wrote: SendDlgItemMessage(hwndDlg,IDC_COMBO_NDF,LB_ADDSTRING ,(WPARAM)0,(LPARAM)"ZZZ");
Have you tried using CB_ADDSTRING instead?
Don Jones BNYMellon wrote: Does anyone have any ideas?
Are you resizing the edit portion of the combobox or the dropdown portion? They are sized separately. Have you seen this?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
yes, I have but did not realize the objects were sized diffferently. Will try looking at that.
|
|
|
|
|
Add a control variable to combo box, and try it : for(k=0;...)m_ComboBox.InsertString(-1,MyItem[k]);
|
|
|
|
|
Hi all,
I'm trying to find the best/easiest way to consume a WebService in my application which is written in C/C++. I've seen and tried numerous examples over the course of the last few days, and there seems to be pros and cons no matter which way I go. I thought I'd ask you folks your opinion.
I turned on the "/crl" option on in my project, and added a WebReference. I was able to call the WebService without any problems, but I'm unsure how to handle exceptions when something goes wrong (ie: address is no longer valid). If everything is up and running and things are successful, there are no problems.
Test_WSService obtws;
try
{
obtws.Url = "http://localhost:8088/mockObtain_WSSoapBinding1";
obtws.UpdateObject ( "A", "B", "C" );
}
catch ( ??? )
{
}
With whatever route I go with, I'd like to be able to change the destination url on the fly as this will be specified in a user-modifiable configuration file.
My knowledge of COM is almost nil.
I've seen examples where a developer did all the WebService consuming in a C# dll, and just called that from the C++ application as well.
Whats your past experiences, recommendation?
Anything you could forward would be helpful.
Cheers.
Mike.
|
|
|
|
|
Mike Doner wrote: With whatever route I go with, I'd like to be able to change the destination url on the fly as this will be specified in a user-modifiable configuration file.
Mike Doner wrote: I've seen examples where a developer did all the WebService consuming in a C# dll, and just called that from the C++ application as well.
Mike Doner wrote: Whats your past experiences, recommendation?
Yes, we have done the same thing. I used WSDL[^] to generate a C# proxy source file then built that into an assembly with a wrapper class that changes the URL based on incoming parameters. This wrapper is then used by C++/CLI DLL Project that exports a native C++ class that is used by native EXE projects.
The WSDL generated class derives from System.Web.Services.Protocols.SoapHttpClientProtocol which has a .URL property.
|
|
|
|
|
Thank you for your reply.
As I said, this is all pretty new to me, so I'm doing a bit of feeling around for getting it to work. I was able to create a C# proxy without any problems, and from a C# project, I can call the WebService. I've created a C# Class that has a WebService, with all the parameters I need, including setting the URL.
Now, to call this from the C++ side... Were you suggesting all the C# stuff being in a .DLL, then calling those functions from the C++ side? Is there a way to put a .cs into a project and have it all compile together into one project?
I found a sample online (may have been here on CP), that has a MFC project, and it shows how to use a C# object from the MFC side, including all the string marshalling. Is there an easier way?
Thanks again... I'm getting closer! 
|
|
|
|
|
Mike Doner wrote: Were you suggesting all the C# stuff being in a .DLL, then calling those functions from the C++ side?
Sort of. C++/CLI provides the combined use of Native Code and Managed Code. So it creates a very natural environment for marshalling. By building your C# proxy into an assembly it becomes available to C++/CLI projects as a Managed class when you add the Reference to the assembly.
Mike Doner wrote: Is there an easier way?
An easier way to perform Marshalling? No, marshalling is nothing new[^]. It is what it is, we can't change it.
|
|
|
|
|
Hello!
I have developed an Pocket PC 2003 SDK application using embedded visual c++ in My Xp system, in order to check it i have always build the .exe, then connect the device and execute the .exe in that device to check whether every thing is working properly or not!
Is there any way through which i can run the application in my XP system itself, so that i can debug and know where the errors are etc.. without connecting the device.
Thanks!
|
|
|
|
|
Isn't there a Pocket PC 2003 emulator? This emulator image download[^] certainly implies as much.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks!
There is an option during building of .exe i.e Win 32 (WINCE emulator).
Shall i have to use this to run in the emulator image.
Then how can i debug my code?
Thanks !
|
|
|
|
|
Once you start debugging, the emulator will be displayed on the screen and you'll be able to interact with it (click on your app for instance). To debug, well, it is similar as debugging a desktop application: you can set break points, inspect variables, ...
|
|
|
|
|
I've never used Windows MObile, Pocket PC or the emulator - can I suggest you look at the documentation, starting here[^] at the emulator section?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Yes, you can use the emulator for that purpose. You can't run it directly on windows XP, only through the emulator.
|
|
|
|
|
Hi all,
please tell me how can i Convert a DWORD value in CString.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
I dont know which type is used here.
please explain me with example.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|