unknown soldier
Posts
-
This is shameful for a society -
ADO connection StringI am successfully conecting to *.mdb database on my local machine using following connection string:
HRESULT hr = m_pConnection->Open(
_bstr_t(L"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\source\\VCDb.mdb;"),
_bstr_t(L""),
_bstr_t(L""),
NULL);Now i want to connect to SQL-Server running on the machine in my neighbourhood. The ip of target machine is 192.168.10.10. Plz tell me the connection string.
-
GUID generationI want to programatically generate GUID and want to store it as a key in std::map. Plz tell me the way to programatically generate GUID and storing it in appropriate datatype/s
-
TCP/IP server testingbenjymous wrote: She cannae tek much more of this! She :confused::confused:
-
TCP/IP server testingIs there any TCP/IP server testing tool available for testing load and scalability. I want a tool in which i can implement my protocol for performing tests. If any one knows it then please inform me.
-
ADO exception problemNot worked
-
ADO exception problemI am writing a simple DOS applicaion that is using ADO to connect to data source. The COM libraries are initializing successfully and the connection to database by connection pointer is also established. But when i try to run a "query" using connection pointer, the following exception is raised:
Error:800a0e81.
ErrorMessage:Unknown error 0x800A0E81.
Source:ADODB.Connection.
Description:Operation cannot be performed while connecting asynchronously..Can any one tell me why this happens ??? Here is my code:
\_bstr\_t bstrQuery("SELECT \* FROM Customers"); \_variant\_t vRecsAffected(0L); \_RecordsetPtr pRecordSet;
pRecordSet = m_pConnection->Execute(bstrQuery, &vRecsAffected, adOptionUnspecified);
-
ADO problemI am writing a simple console application with MFC support in order to connect to Database using ADO. But having problems in the initial stages. The main program looks something like this:
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
_ConnectionPtr m_pConnection;HRESULT hr; if(!AfxOleInit()) { printf("\\n COM initialization failed"); }
hr = m_pConnection.CreateInstance( __uuidof( Connection ) );
if (SUCCEEDED(hr)) printf("\\n createInstance successful"); else printf("CreateInstance unsuccessful");
The problem is that CreateInstance is failing. Please tell me the problem if you find out. Oh yea, i added following lines in StdAfx.h:
include #import "C:\program files\common files\system\ado\msado15.dll" \
no_namespace \
rename( "EOF", "adoEOF" ) -
database newbieHi all !! I am developing an instant messaging server which will also connect to databases. I am a newbie as far a data access in VC++ is concerned. Now i want to connect it to database server (client/server model). Please suggest me the best data access technique considering the requirement of my application as follows: My application is DOS based, 90% complete and written without the usage of MFC. I want to access data from sql-server based machine running on my network. My target is to access data quickly and efficiently though accuracy can be compromised. Programming ease is also a requirement.
-
Windows Messenger and WinXPIt worked. Thank you very much.
-
Windows Messenger and WinXPI am having one trouble using Windows XP. Any one knows the solution please tell me !!!! I've created three users. One with administrator rights and the other two as normal users. When i login with administrator user, my "windows messenger" software icon appears in the systray and this software works in normal manner. But here is the problem: Whenever i sign is as a non-administrator user, the icon of "windows messenger" not appears in systray. It appears in programs menu but when i click it, nothing happens. Can anyone tell me what mistake i am commiting ????
-
VC 7.0 migrationI created a console application with MFC support. I right clicked on my project in Solution explorer window. A menu opened, whose last option is "properties" and I clicked it. Then I clicked configuration properties. But below that, no option like "linker" is present. Whats that ????
-
VC 7.0 migrationStill unable to understand :( In order to use multimedia properties in VC++ 6.0 program, we select the Settings option from the Project menu, and pick the Link tab. Then we select General from the Category list box, and add WINMM.LIB ("Windows multimedia") to the Object/Library Modules text box. We need to do this because program makes use of a multimedia function call, and the multimedia object library isn't included in a default project. Otherwise we'll get an error message from the linker indicating that the PlaySound function is unresolved. Now where we insert such *.lib files in VC++.NET
-
VC 7.0 migrationI've migrated to VC 7.0 few minutes ago :) and naturally having some problems. In VC++ 6.0, there is a "project" menu that contains the "settings" item. Right !!!. If we click it, a property dialog appears which contains among many tabs, a "Link" tab. Here we give the path of various run time libraries. Now how can we achieve this using VC++ 7.0
-
Why "hate" USI was reading the thread below started by Martin Marvinski regarding coming to US. He started his post writing that people "hate" US. I don't know the exact quantity of people who love or hate US but stories like this one never made good impression of US in the past and neither these stories will in the future
-
Winsock/AcceptExI've read from MSDN that the M$ specific Winsock function AcceprEx when returns in overlapped fashion gives the accepted socket descriptor that is passed as one of its arguments. But in MSDN doc it is written that this socket descriptor can be used with read(),write(),readfile(),writefile(). Can anyone tell me why this descriptor can't be used with WSARead() and WSAWrite or it can be.
-
I/O Completion PortWorker threads are associated with I/O completion port. Whenever I/O operation completed a thread is invoked. Now when this thread is invoked, how we come to know that which "type" of operation completed whether "read" or write". I think this has to be determined by overlapped structure but i don't know that which "field" of this structure informs about the "type" of operation completed.
-
M$ new programming languageSome one, few days ago pointed out about M$ new programming language ( E# or F# whatever) here at lounge. On that day i was unable to read that thread properly, but i noticed a URL of M$ site was given in that post about this new programming language. Can anyone give me that URL of that web site containing information about this new programming language OR please someone give me the link of that thread discussing this topic. I am trying to search it but Chris has not allowed us to search a string like "C#" here, as "#" denotes something else.
-
WinSockI want to ask few questions regarding my server side application using Winsock API. My server accepts new client using accept(). This function returns a new socket descriptor. This socket descriptor has input and output buffers. 1) Can anyone tell me that how much resources this new socket descriptor required. What is the size of its input and output buffer by default and how can we change the queue size of input and output buffer. 2) My server application will run on Win2K machine with 512 MB RAM and 1 Ghz processor. How many connections can i accept, if the work load is low. (Server only calculates factorial of a number and return to client)
-
Cricket: Thats unusualAustralia 167 all out in 46 overs After a long time this type of low performance exhibited by Kangroos team in home. Well, match is not over