C++ :: Access To SQL Server Without ODBC

Feb 21, 2013

I need to connect and manipulate a DB in SQL Server 2008, but need to have high performance too, so, I want to develop an class in C++ that connect direct to DBMS, in a low level, without using ADO, ODBC or OLEDB.

I found this API [URL] .... which proposes to do exactly what I want, but I need to develop it by myself.

View 4 Replies


ADVERTISEMENT

C# :: Upload MS Access Database File To Server From Client Program

Sep 29, 2012

i have to upload a ms access database file to the server from my client program. The server program should connect to this database and read the data. What's the easiest way to upload the file? Is it FTP? i tried sockets, but it only allows like 9kb of data transfer capacity.

View 3 Replies View Related

C Sharp :: Cannot Access Server Page Custom Controls In Website Page

Jan 24, 2015

I m making calendar in server control page by taking composite control.I am also adding textbox in each cell of calendar. Now i want to access the value of each textbox of selected month and respected date in default.aspx page on button click event. Here the button is not a custom control but defined in default.aspx page..

Can't access textbox text and date or controls of server page in website(default.aspx) page.

View 2 Replies View Related

Visual C++ :: ODBC Multi Connections To Same DB Or Not?

Oct 16, 2012

I made a C++ Wrapper on top of ODBC.

I got a Connection, and a Statement class.

The Connection class holds the Database Connection ODBC Handle.

The Statement class holds the Statement Handle, there can be multiple per Connection. It is made and destroyed each time a query must be done on the DB.

Now I'm just wondering.

I have a multithreaded application.

Is keeping one Connection for one DB enough for the whole application? Where the different threads will make Statements based on that one Connection.Or is it better to keep a Connection per thread?

View 3 Replies View Related

C++ :: Database Connectivity With OCI Library Using ODBC

Apr 3, 2013

My existing code is making database connectivity with oci library, but know we want to make the database connection using odbc on solaris/linux.

A code module has been written for the ora11gconnection ,how i should make changes in the code so that it can have odbc connectivity , and can also connect through mysql .

View 5 Replies View Related

Visual C++ :: ODBC SQLBulkOperations Obtain Identities?

Dec 1, 2012

I'm using SQLBulkOperations to insert rows in bulk. I'm using SQLBindCol to bind the columns before SQLBulkOperations().

But how do I obtain the Identities? The bound buffer for the Identity column does not get filled after SQLBulkOperations()

At first I tried to use Bookmarks (column 0), but it seems that that is some other value (thought it would be filled with identities). But now I thought it must be that the bound buffer for the Identity column itself must be updated, but it's not happening. Maybe I need to do something extra?

View 1 Replies View Related

C++ :: Access Private Data Of Base Class Without Access Modifier

Sep 9, 2013

if we don't provide the acces modifiers for base class and we need to manipulate the private data of base class in derived class. Is there anyway to acces the private data members? Here's a coding example

class A {
private :
int a;
};
class B : public class A {
public :
void displayA() { cout<<a<<endl; }
};

how i can acces the a of base class A in derived class B without acces modifiers.

View 16 Replies View Related

C++ :: Connecting To SMS Server?

Nov 11, 2013

I'm currently in the middle of designing a program for some project. one part of the program is to send reminding SMS messages to the employees.

I have already subscribed to a SMS provider that has SMS integration - API. But now I'm wondering how will I be able connect to the SMS server and be able to send messages?

View 1 Replies View Related

C++ :: Downloading File From Web Server?

Jul 4, 2014

I cant seem to get it to write out the correct size to the .gif file,the original is 3kb but the new one i write to finishs with 1kb.

Code:
cout << "Connected"<< endl;
std::string sendbuffer = "GET /apache_pb.gif HTTP/1.1
"
"Host: 192.168.1.4
";
// std::string buffer2 = "GET /apache_pb.gif HTTP/1.1
Host: 192.168.1.4

[Code] ......

View 4 Replies View Related

C++ :: Connecting Client And Server App

May 30, 2013

I need to create a client and server program. The client will have a GUI that will display all the available servers (since more than one will be running) in a list box.

I’m guessing a TCP connection will be the best method here, but how will the client find the servers to connect to? I won’t know the IP address of the server because anyone could take the server program and run it on their computer and the client would have to find it.

Is there some way to make the server send some kind of signal that only the client application will be to connect to? So the server will be sending out a signal, the client finds the signal and connects to the server. Is this possible?

i also need to be able to store the IP address the client selects so when the client application is run again it will automatically connect to the server that was stored.

View 19 Replies View Related

C++ :: Multithreaded Server And Client

Apr 28, 2014

I need the code for multithreaded server and client code. one server and two or more client connect to server.

Without fork(),semaphore(),etc

View 1 Replies View Related

C++ :: Can Be Used For Server Side Programming

Nov 28, 2013

I know this question must have been asked before, but the problem that I am facing is that I am using a library PoDoFo to parse PDF files. It seems that it is only compatible with C++.

Now I want the application to be web-based. That is, the user uploads a PDF file on the server, the server parses it and the parsed content is then sent back to the user.

Is such a thing possible with C++, or maybe any good work-arounds? Or should I look at server-side scripting languages like PHP and their respective libraries?

View 8 Replies View Related

C++ :: Web Server Malloc Memory Error

Dec 1, 2014

I am writing a very basic database in C++ and I am accessing the data from a web browser. I am using the opensource Mongoose web server code....

I have an issue...

The way the DB works is this: on starting, the DB loads a json file of all of the data into it. I have a class called DatabaseLoader that does this - it is the class that gets rewritten depending on the data structure of the json.

This is passed to vectors (vector<Node*> and vector<Edge*>) as references from Graph object.

Once the DatabaseLoader has finished it can be destroyed and any memory allocated objects it created (except the ones in those two vectors).

From then on, the Graph object is in charge of all of the elements in the database that are stored in the two vectors. When the user browses to htpp://127.0.0.1:8000 they see the json representing each object in the vectors.

All good so far....

However, when I repeatedly hit refresh in my browser (and call me insane...) at quite a fast speed I get this error:

Code:
main(29855,0x7fff76763310) malloc: *** error for object 0x7f98b2829408: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[1] 29855 abort ./main testing.json

It seems to me this would be if I tried to "delete" and object twice, or if one of my objects was overwriting memory somewhere. However I am not recreating anything, I am just looping over the vectors and printing out the content. When I refresh slowly, I dont see this happen - i did it quite a lot of times, but when I do it fast I think it is happening.

So is there any possibility of me hitting the c++ web server to quickly and it is trying to process the data twice, causing some sort of memory error - i.e do I need to implement threading or something??

I can paste code, but there is quite a lot now....

View 1 Replies View Related

C# :: Upload A File To Remote Server

Oct 1, 2012

I managed to upload a file to a remote server with below code:

Code:
// Get the object used to communicate with the server.
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://kasunl.worlditsme.com/voo.txt");
request.Method = WebRequestMethods.Ftp.UploadFile;

[Code]....

View 6 Replies View Related

C :: Encryption Of Data To Be Sent From Mobile To Server

Mar 8, 2013

I just started to work on a project which is 'Body Area Network'.

What I need to do is to take data from body with some sensor nodes and send it to mobile which would further send the data to a remote server, and I need to add some security (encryption/decryption) on the data.

So I want to know how to send data from mobile after encrypting it to the server and then decrypt it back(on server side).

View 6 Replies View Related

C :: Connecting To SMS Server And Send Messages

Nov 11, 2013

I'm currently in the middle of designing a program for some project. one part of the program is to send reminding SMS messages to the employees.

I have already subscribed to a SMS provider and they gave me an access to a control panel (aspx). But now I'm wondering how will I be able connect to the SMS server and be able to send messages?

View 11 Replies View Related

C :: Client Not Receiving Time From Server

Sep 2, 2013

I'm building a client server which is communicating.I am trying to use the function recvfrom, but have several bugs, so I might have the recvfrom function in the wrong part of my code.

Code:

int talk_with_server(int fd) {
printf("Test.
");
char buf[LEN];
int n = read(fd, buf, LEN);

[Code]....

View 1 Replies View Related

C :: Server-client File Transfer Using UDP

Sep 1, 2013

I have to make a server-client file transfer using UDP . I have created a basic server which receives message sent by client . That's all. Now comes the major part :-

1. The message sent by client is the name of file
.2. Now the server checks whether there exists this file or not .
3. If there exists it sends the file to the client and it also keeps the count of the number of requests of file made by the client . Here is the Server Code

Code:

#include<sys/socket.h>
#include<arpa/inet.h>
#include<stdio.h>
#include<unistd.h>
#include<fcntl.h>
#include<sys/types.h>
#include<string.h>
}

[code]...

The server reads the data from file and writes into it and send to the client , On the other end client receive the data and make duplicate of this file and write into it. But on compiling it gives error in reading the file.

View 4 Replies View Related

C++ :: Create And Amend Database Using SQL Server?

Nov 1, 2014

I'm trying to find a way to create and amend a database using the SQL server. How to do this. I just know it's included with the VS Express package.

View 1 Replies View Related

C++ :: Retrieve Data / Files From A Server?

Feb 25, 2013

I was wondering if i had to say simply retrieve data from a server whether it be simple plain text for variables or download whole files (FTP), what would be the best method for this? I would imagine there is a pretty big difference between retrieving text and downloading files but im just wondering what the best thing would be to research for both.

View 3 Replies View Related

C/C++ :: Send Message From Server To All Client?

May 30, 2014

First of all i create single server single client program and then using thread i make multiple client to connect to server.

while(true){
csock = (int*)malloc(sizeof(int));
if(nClient<=maxClient){
if((*csock = accept( hsock, (SOCKADDR*)&sadr, &addr_size))!= INVALID_SOCKET ){

[Code].....

The clients send message to the server and server echo back the message to that particular client. But i want that the server will echo back ones's message to all clients. Suppose 5 clients are connected to the server. So whenever one client send a message to the server, the server will send that message to all 5 clients.

View 1 Replies View Related

C# :: Stream Video From LAN Server Onto Client PC?

Oct 9, 2014

I have loads of movies on DVD and they are all on my media server, but the media server doesn't actually allow streaming to be done, the movies are just stored in a folder on the desktop.

My goal would be able to host all my movies on my LAN server, then build an application to run on a windows based PC at home, not over the Internet just over LAN. For example, say the server I have at home had all the movies in a folder on the desktop, then when I start the client on another PC or laptop in my house, I could view all the movies, choose which one and then stream it to that client PC. I am using C#.NET WPF visual studio.

Maybe I could use something like VLC player to play the movies but I would want to build an client application to view the movies and search for them on the server where the movies are stored. Also I know there are other media streaming programs out there but I want to develop my own one for my uses.

View 8 Replies View Related

C/C++ :: Server Receives Corrupted Data

Feb 27, 2014

I have a problem with this work. It is that when the server send some data to the client it send them correctly but when they arrive to the client all the info are changed and i don't know why, because i print them before the send and they are right, but after they arrive to the client the data doesn't be the same.

here it is the server and client's code. In the code there are some italian words, but there are only constant, so there is a real problem to understand the code.

Server

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#define FLUSH while(getchar()!='

[code]....

the problem is in the line 136 of the server and on the line 203 of the client

View 7 Replies View Related

C# :: Setup Not Working In Other Systems With Other SQL DB Server

Mar 7, 2014

I developed one windows application in c#.net , this application is not working when i installed the setup in another system with another sql database server-r2. How can solve this. here i had attached my code for reference.

App.config file

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="SqlCon" value="Data Source=.sqlexpress;Initial Catalog=aathi;Integrated Security=True;Pooling=False"/>
</appSettings>
</configuration>

[Code] ....

View 3 Replies View Related

C# :: Cannot Send Data From Client To Server

Oct 26, 2014

i am making a client server application but the problem is that i cannot send data from CLIENT to SERVER , but i can receive data from SERVER to CLIENT ... Below is mt client and Server code and i also have attached both client and server files...

CLIENT CODE:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
namespace asynclient {

[code]....

View 3 Replies View Related

C++ :: Client Server Programming Using TTcpServer?

Jun 23, 2013

I am using the following code that I copied from a website to send some numbers using TTcpServer in C++.

void __fastcall TForm2::Button1Click(TObject *Sender) {
//Creating a stream
std::auto_ptr<TMemoryStream> myStream(new TMemoryStream);
for (byte i = 0; i < 9; i++) {
myStream->WriteBuffer(&i,1);

[code]....

I do not understand what is being sent in the byte variable, nor why a byte variable was used. I want to send some strings instead of numbers, but I don't understand what's taking place so I can't identify what to change.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved