C :: Connect Program To Windows Session ID
May 16, 2013I need to get the Win OS Session name to a string in C. How can I get to that?
View 1 RepliesI need to get the Win OS Session name to a string in C. How can I get to that?
View 1 RepliesI'm getting error ID 10061 - WSAECONNREFUSED - No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running.
However, when I use 127.0.0.1 or localhost dns, everything works fine, Im connecting to the ip from [URL] .... with port 1337 ...
this is connect 4 program with Minimax algorithm using NegaMax algorithm and I don't know actually if I implemented it correctly ..how to evaluate neutral moves check it out and tell me how to implement it better
#include <iostream>
#include <cstdlib>
#include <conio.h>
[Code].....
I am studying Software Engineer and i have a project on C. The project is a simple Pharmacy Management. I know how to develop it also i have already created the DataBase but i don't know how to connect it.
Well here is the code :
#include <stdio.h>
void main(void) {
int option;
puts("Farmacy Managemet
");
puts("Options :
[code]....
So... I'd liked to save the details from <scanpre> to sqlite db. Also i'd liked to load the details to <scanmed> from my db (name,price,form, etc.)
write a program that will connect my laptop to my desktop unlike gotomypc.com. I want to have my desktop hooked up to a router and sends video and audio info to my laptop. At the same time my laptop will be sending it's keyboard and mouse. If there is an audio input from a microphone it will send that to the desktop. If the webcam needs to be used for something like Skype, it will send that to the desktop too. I think it would be faster for the laptop to process any flash drives, but it should be able to send that to the desktop too. Has a program like this already been created? Is C++ an optimal language to write the program in?
View 5 Replies View RelatedHow I message show, when session expired?
without web.config
I am working on visual Studio 2008(3.5)
I have a problem with my simple operations calculator code (using C, in Code::Blocks). I am required to use a while loop statement so the user can execute multiple step operations without re-opening the program. When I launch the program, I get through the first session fine, but when I'm on the second session, when entering the two operands and press enter (to calculate), it just gives me the return and say press any key to continue (exit).Here is the code:
Code:
# include <stdio.h>
int main()
{
int num1, num2;
char op;
int finished = 0;
}
[code]....
I have an C++ application which uses Microsoft Web browser ActiveX control to launch any URL within the application. The browser is embedded in C++ form and It's working fine with all the feature Microsoft has exposed through Interface(IID_IWebBrowser2).But while any url that is using session cookie has been launched, even after closing the browser the session cookies are not getting deleted. For example if user login info is stored as session cookies,the url is using the cookies and getting launched without asking for user log in info.
But if I close the browser, and again relaunch , the cookies should be deleted and the url will not find the cookies to be used for log in . That is not happening here. Although this is session cookies , it's not getting deleted and being used by embedded browser. However, if the url is launched in IE, it is behaving as expected.
So, Do I need to delete the cookies explicitly? If Yes, How to do that?
I'm trying to write to a named pipe created by a service, as we all know the session 0 isolation implemented in vista and forward makes this task a bit complicated.
well at this point i managed to make almost all to work but my real problem comes when i try to write on the named pipe from my GUI application with no administrator rights
If i run the GUI application with admin rights it works 100% but, I don't need that application to require the user admin rights and for security reasons i rather to leave it without admin...
so i started my research and i found that there is a way to achieve this by calling CreateNamedPipe() with a low integrity security attributes...
well how to implement but i finally made it, the problem is that it gets worse than passing null security attributes, it works with admin rights with NULL security attributes, but when i pass the low integrity security attributes it gives "access denied" even when using admin rights, so i guess im passing the wrong security attributes but how to manually create the security descriptor string.
This is the code:
Service (session0) SERVER
Code:
DWORD WINAPI PipeThreadRSVS(void* pParameter){
LPTSTR _PIPE_NAME = "\.pipeRSVHPipeIn";
bool Break=false;
char Received_Buffer[BlockSize+16];
DWORD BytesRead = 0;
[Code] ....
i am trying to create a program for multiple windows. Here is my code
#include<Windows.h>
// Store handles to the main window and application instance globally.
HWND ghFirstWnd =0;
HWND ghSecondWnd=0;
HWND ghThirdWnd=0;
HINSTANCE ghAppInst=0;
[Code]...
problem is when i try to execute the code it just say create window1- failed!!
I am trying to build a program which would start at the start of the computer, so for that when ever the user would run the program the program must get copied in the startup folder of the Windows I guess or anything else so that the program runs as soon as the computer is booted.
I this program would create a .vbs file n the startup, in that vbs file i would write the code for speech. so what the computer would greet you when you switch on the PC.
Here's what I tried:
#include<stdio.h>
#include<conio.h>
#include<string.h>
[Code]....
So my motive behind this code is that, this should create a .vbs file in the startup folder in that vbs file the above code would be written,
(Dim speaks,speech
speaks=Hello!
set speech=CreateObject(sapi.voice)
speech.Speak speaks) a
And then the vbs file would execute as soon as the computer starts, and then it would speak "Hello!".
But the problem is that i am not able to create a file in the folder when i run the program the file is not created, i do not get any error but nothing happens as well.
I have client-server program that written with c++. Both client and server program are working on my computer.Also, I test it on many computer.There is no problem with it.But, When I try to run that program on the my windows server 2003. I get error which on the below.
[URL] ....
I researched it and someone said that it is related 32-64 bit system . My windows server is 32 bit. And I am compiling as 32 bit. But I still get error , can not get any answer with it.
My use case is this: I have a C# Console application. I would like to run it via the Windows Task Scheduler, and would like it to attempt to run until it succeeds. My problem is that I can't achieve this. How does the Windows Task Scheduler recognize that a program has failed? I tried returning 1 or 32 instead of 0 but that didn't work. One possibility is to have the rerun logic in the C# console application but it feels like there must be a better way.
View 6 Replies View RelatedI have a Windows form application which has database and will store user details. my problem is while executing program form is not displaying .
View 1 Replies View RelatedI am developing a program that needs auto start at windows startup. For that I need to add Registry entries. Also the program needs to read some registry keys. What are the functions i need to do these.. Simply I need to
check if the startup key already exists
add a new key if it doesn't exist
read a key values
How I can connect BoxedApp.dll for my C# - project?Is it real?
View 4 Replies View RelatedI own a code written in c++ that is used to connect the router using the WPS protocol, but has to be modified to operate in "registrar" mode and I do not know much about c++.
View 1 Replies View RelatedI want to connect to other computers remotely and for example grabbing some data from them. Do we have any c++ library for this purpose? And if yes, any good documentation about it.
View 1 Replies View RelatedI have so far tried MySQL++, ODBC, SimpleDB, and the MySQL C++ Connector. All of them give me a FLOOD of errors in the output. Is there an easy way to connect?
View 7 Replies View Relatedlibrary management system in which c is used as front end and oracle is used as back end in order to retrieve the data. if possible can u send the source code for it.
View 1 Replies View RelatedI am creating a connect 4 game using dynamic memory allocation the question is;
Write a two-player game of Connect Four where the user can set the width and height of the board and each player gets a turn to drop a token into the slot. Display the board using + for one side, x for the other, and _ to indicate blank spaces.
I have created the board. However I am unsure as how to make a start on getting the players to make moves.
Code:
#include <iostream>
using namespace std;
char **create_table(int width, int height, char blank) {
char **p_p_connect4 = new char*[height];
for(int i = 0; i < height; i++) {
p_p_connect4[i] = new char [width];
[Code]....
I'm creating a kind of connect 4 game that will be due on November 30. I'm starting now so that I don't have to worry about it as much later. Anyways, I just started, and I already have some questions/problems. I want to be able to change that numPlayers outside of the function, so I used pointers like my instructor said to, but it is giving me an error that numPlayers(the argument) is not an int*. How do I fix this?
Code:
int numPlayers=0;
void promptNumPlayers(int *numPlayers)
{
printf("Enter the number of players: ");
*numPlayers=readInt(stdin);
if (*numPlayers != 1 && *numPlayers != 2)
}
[code]...
I have a Blackjack game that allows users to create a login account and it keeps track of their bet amount, and total bank,etc. How can I connect the program on 2 or more computers so that people can play together?
(A) How would I code it? (B) Can I just connect a USB or HDMI and use the appropriate code? (C) Do they need to be executables instead of just running out of Visual Studio? (D) Can this maybe done over Wi-fi? (E) Or is this something more complicated like over a VPN?
I'm in the middle of creating a ePOS for my uncle and so far I've created a database for it where it will create, update and delete records successfully.
My next step I would like to do is to create a printer till thing, but how do I connect my database to that ?
I can create a till but how do I do link my database with it? I followed this example here [URL] ....
I have an client application and server application, I want to make an update program, In my program I want client send a message to server if there is an new version or not, and server reply with a text message ,send will be done via web service .
View 1 Replies View RelatedIs there a way to make this program work without entering the full path to a file?
Code:
ifstream ex("podatki.txt", ios_base::in); // if I type full path than program works
if(ex.is_open()) cout << "The file is open and con. with the object." << '
';
else cout << "you messed up" << '
';
int counter = 0;
[Code] ....