Search Results

Search: Posts Made By: ramneek
Forum: Programming 11-09-2005
5,223
Posted By ramneek
again batch file
i have use system but i am unable to pass the varable to it
how can i do this

eg

system("c:\text.bat c:\textfile.txt");

this code is working but when what shaLL I do in this case

char...
Forum: Programming 11-08-2005
5,223
Posted By ramneek
batch file
what is a command to call a batch file from a c++ program
when called with the argument which is a text file, then how to print that text file on a printer.

please help me with code if possible
Forum: IP Networking 11-08-2005
4,571
Posted By ramneek
batch file
my requirment is

i have to call a batch file from a c++ program
that batch file is called with the argument as print.txt
print.txt is a text file which should get printed on printer (any...
Forum: Programming 10-30-2005
4,744
Posted By ramneek
hi corona i tried to compile my above...
hi corona

i tried to compile my above program with -lodbc and -lsql (both seperatley and togther) but it is giving error as


ld: fatal: library -lsql: not found
ld: fatal: File processing...
Forum: Programming 10-26-2005
4,744
Posted By ramneek
i have been trying to connect Microsoftsql serevr...
i have been trying to connect Microsoftsql serevr to solaris 5.8 using c++
Forum: Programming 10-25-2005
4,744
Posted By ramneek
i have been working on solaris 5.8 i just...
i have been working on solaris 5.8

i just want to know that what libraries u need to compile the database program

because i think i am working on older version of solaris so i dont have sql.h...
Forum: Solaris 10-24-2005
1,914
Posted By ramneek
libriaries
i am currently trying to connect sql server 2000 to c++ in solaris 5.8

The problem is i think that some of the librarires like -lsql and header files like sql.h and sqlext.h are missing. i have...
Forum: Programming 10-24-2005
4,744
Posted By ramneek
AGAIN database
THis is my program

#include <stdio.h>
#include "sqlext.h"
#include "sql.h"
#include <string.h>
#include<errno.h>

// #include "sqlunix.h"
#define STR_LEN 30
#define SQL_NTS ...
Forum: Programming 10-21-2005
2,511
Posted By ramneek
hi jim
i know what u have said

but my problem is i am not ablr to find

sql.h , sqlext.h in

/usr/include
or
/usr/local/mysql/include
or
/usr/local/mysql/include

i cant include them in my...
Forum: Programming 10-19-2005
2,511
Posted By ramneek
databse
i am including

#include<sqlext.h>
#include<sql.h>

while writing a program for database connection in c++ (not visual c++)
the compiler is giving error in both

my question is while...
Forum: Programming 10-18-2005
3,153
Posted By ramneek
database connection
i want to connect c++ to ms access.

i am not clear about the concept of odbc

please make me clear that for the above connection which version of odbc i will need?

i am working on solaris
...
Forum: Programming 10-13-2005
7
13,698
Posted By ramneek
man u havent under stand my problem as you...
man u havent under stand my problem

as you said that it return zero
the same result i too am getting

but i have read that sizeof can never ever return zero even if the class or structure is...
Forum: Programming 10-12-2005
7
13,698
Posted By ramneek
but i am getting the result as zero my...
but i am getting the result as zero

my program is like this


struct foo
{
char c[];

};


void main()
{
struct foo s;
cout<<sizeof(s);
}
Forum: Programming 10-12-2005
7
13,698
Posted By ramneek
sizeof
we know that sizeof never returns zero when used with structure

then why in this case it is returning zero


struct foo
{
char c[];
};

void main()
{
struct foo f;
cout<<sizeof(f);
}
...
Forum: Programming 10-11-2005
11,321
Posted By ramneek
getsockname
int getPeerIP(int remoteConnFd )
{

char *sIPAddr;
sockaddr_in theirAddr;
int sin_size = sizeof(sockaddr_in);
int nRetVal = getsockname(remoteConnFd, (sockaddr *)&theirAddr,...
Forum: Programming 10-07-2005
3,625
Posted By ramneek
create object
can we create an parametrize object
to a class with the help of new operator

if yes then how
Forum: Programming 09-19-2005
4,306
Posted By ramneek
how to debug
i am new to solaris

i have one module which contain certain header files and sub modules

i want ot execute the module and c what the values are beeing assigned to variables

is makefile only...
Forum: IP Networking 09-14-2005
3,709
Posted By ramneek
message queue problem
I am sending and retriving the message to the queue

the problem is

after retrieving the message can i see what is there in my message queue.
(actually in my application i am encountring...
Forum: Programming 09-12-2005
7,227
Posted By ramneek
u can use a gdb to see whats happening in the...
u can use a gdb to see whats happening in the program and how the variables are assuming the values.

other wise u have to go line by line and interpret it

i dont htink there is any other way to...
2,724
Posted By ramneek
binary file and message queue
please let me know

how can i mail the binary files

is it can be done thru pine?
is there any other way to do it?

wat are the changes in system i have to make


and one more thing
i am...
Forum: Programming 09-02-2005
2,267
Posted By ramneek
whats the command in unix
what is the command to print the text in a specifed location

eg

i have text ("i am here");
i have to print it on location 20,20
wat is the command and which header file it uses

i am...
Forum: IP Networking 09-01-2005
2,363
Posted By ramneek
what the logic
i have a text file which contain some text like

we|are|one|only
i|am|learning|c++


the input from stdout will be

input1 we
input2 one

it should search in the file where this two...
Forum: IP Networking 08-26-2005
12,394
Posted By ramneek
hi madhavan
the problem is that i have a request that i retrieve from the stack. this request has to get checked in the database. if it is there fine otherwise update the database. now the problem is that you...
Forum: IP Networking 08-25-2005
4,269
Posted By ramneek
how to pass integer
i am writing a client and server program

client program

main()

{
int sockfd,n;
char str[20];
struct sockaddr_in sock;

if ((sockfd=socket(AF_INET,SOCK_STREAM,0))<0)
{
perror("SOCKET...
Forum: IP Networking 08-25-2005
12,394
Posted By ramneek
how you connect to a database
i am working on informix database
can any body helps me with coding how to connect to it on solaris
Showing results 1 to 25 of 30

 
All times are GMT -4. The time now is 12:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy