C++ :: Change Network Configuration Using Win32 VC++

Feb 28, 2013

I want to change my system IP, subnet mask, host name etc. using win32 VC++.

I've tried AddIPAddress function but that's not persistent.

I want to change it that it should be change without rebooting system and should be there after restarting the system.

View 3 Replies


ADVERTISEMENT

C/C++ :: Compiler Configuration With Eclipse

Jul 7, 2014

I am using Eclipse to write C program. I download the CDT. However, I wrote the code but when I build it, I got an errors.

Make:*** No rule to make target all, Stop

View 10 Replies View Related

C/C++ :: Loading A Structure From Configuration File

Mar 18, 2015

I am doing a project in C++ - a simple data base (with "one table"). I want to build that data base using a LIFO or FIFO list, but this doesn't matter here

The only problem I have is that the structure of the data base is not "locked" in the code of the program, but when the program starts, it is "loaded / implemented" from a "configuration file" called "data.txt".

So the user, before she or he runs my program opens the file "data.txt" and writes the structure of the data base that se/he wants to create. This means that one time my program can be used to create a data base of students with fields such as "name / surname / gender / age / idnumber / university" but the next time it can be used for a data base of CD's with fields like - "author / release date / no. of tracks / etc.".

How to do that "loading" of a structure of a data base from a file, when the user runs my data-base creator (my C++ program).

View 1 Replies View Related

C++ :: Loading A Structure From A Configuration File

Mar 18, 2015

I am doing a project in C++ - a simple data base (with "one table").

I want to build that data base using a LIFO or FIFO list, but this doesn't matter here . The only problem I have is that the structure of the data base is not "locked" in the code of the program, but when the program starts, it is "loaded / implemented" from a "configuration file" called "data.txt".

So the user, before she or he runs my program opens the file "data.txt" and writes the structure of the data base that se/he wants to create. This means that one time my program can be used to create a data base of students with fields such as "name / surname / gender / age / idnumber / university" but the next time it can be used for a data base of CD's with fields like - "author / release date / no. of tracks / etc.".

How to do that "loading" of a structure of a data base from a file, when the user runs my data-base creator (my C++ program).

View 2 Replies View Related

C :: Configuration Tool That Edits Certain Parameters In File

Sep 15, 2014

I want to make a configuration tool that edits certain parameters in my C. file. My problem is that I don't have a clue on how to start making this.

View 12 Replies View Related

C++ :: Program That Handles Configuration Files - Config Parser?

Apr 9, 2013

I wrote a small program that handles configuration files. I was wondering if this code is considered "good?" I am also wondering if there are ways to optimize it.

class configFile {
std::vector<std::string> variables;
std::vector<std::string> values;
public:
/* declare the constructor function */
configFile(std::string loc) {

[Code] ....

View 3 Replies View Related

C++ :: Reading Configuration INI File To Read Custom Defined Fields

Jun 12, 2013

I’m developing an application where I have some defines, like:

#define PatientName “(0x0010, 0x0010)”
#define PatientId “(0x0010, 0x0020)”
#define Modality “(0x0010, 0x0030)”

And a few more (up to 3000). These defines are used to read certain fields from a DICOM image, that give information about that image (Patient Name, etc…). However I don’t wish to read all these fields. Instead I’m trying to load an .ini configuration which will configure which fields to read. For example:

[PROPERTIES]
# Fields to read
fields=PatienId,Modality

This would only retrieve the Patient Name and a Modality.

The problem is, the values I retrieve from the .ini file (reading and parsing the file with std::fstream) come as a string. How could I retrieve, for example, the defined value from PatientId, i.e. “(0x0010, 0x0020)”? Something like std::cout << # << "PatientId"; won't work.

View 3 Replies View Related

C++ :: Method To Loop Through Network IPs

Nov 25, 2013

This problem relates to a program i am developing to ping all hosts on a network.

So far I've managed to access a PostgreSQL database to retrieve a CIDR network address e.g. 192.168.52.14/24.

I have then managed to mask the bits to get the network address.
So for e.g. above its 192.168.52.0

I now need some kind of algorithm to loop through available hosts so from.

192.168.52.0 - 192.168.52.255

I have got as far as deriving the network and separating it into an int array

So I have : ip_start[]= {192,168,52,0}

View 1 Replies View Related

C++ :: Threading Over The Network With Pthread Or TBB?

Jun 13, 2013

I'm wondering if there is a library for C++ that supports threading over the network, maybe with a threading pool and a specific protocol; or if there is just a de-facto protocol for doing threading over the network.

View 10 Replies View Related

C# :: Difference When Starting A Program From Network?

Aug 17, 2012

The following code prevents windows from letting the monitor go into sleep mode when the program is active and wakes the monitor up after a scanner scans something.

Code:
protected override void WndProc(ref Message m) {
if (m.Msg == W32.Const.WM_SYSCOMMAND &&
(m.WParam.ToInt32() & 0xfff0) == W32.Const.SC_MONITORPOWER && m.LParam.ToInt32() != -1)
{
return;

[Code] ....

When the program is started normally it works fine. But when the program is started from a network share it goes to sleep anyway and the OnScan does not work anymore. Removing the Send Message line makes On Scan work again but then the monitor wont wake up on a scan of course.

What could be the problem here when started from the network?

View 1 Replies View Related

C# :: Detect And Disable Network Cards

May 23, 2012

I have an application in c# that i don't want it to connect to the internet in a virtual environment, like virtualbox, vmware virtual pc and so on. Therefore i though that disabling the virtual network card inside the virtual machine would be a good idea.

View 3 Replies View Related

C++ :: Character Recognition With Artificial Neural Network

Feb 3, 2015

create a artificial neural network for character recognition. URL.....Background:

- I have a good understanding of C++ and Assembly code and currently working on my java skills.(PF1, PF2, Paradigms, and microprocessing classes)

-I've programmed microprocessors(PIC) and will be using a PIC32MZ processor to operate the camera data collection and ANN operation. Currently, I plan to program this PIC in Assembly and C since I do not know if C++ will work on the microprocessor hardware.

View 2 Replies View Related

C++ :: Network Programming - Multiplayer Online Game

Oct 1, 2014

How to use c++ to program network for a multiplayer online game or how would i go about this?

View 5 Replies View Related

C# :: Testing Devices For Up / Down Status On External Network?

Jul 11, 2014

I know I can use ping internally to test a device's connectivity. What can I use to test devices on another network (assuming ports are forwarded, and their IP addresses are at my disposal)? I was looking into the TCP Client class.. would that also work with devices using DynDNS?

View 7 Replies View Related

C++ :: Redirecting Network Traffic (building A Proxy)

Feb 3, 2015

I want to build a proxy, middleman between various client programs on my machine and servers outside, like this:

Client -> Proxy -> Server, Client <- Proxy <- Server.

OSes are Windows XP, 7 and 8.

Within that proxy I want to analyze data before it reaches it's destination and have full control over it to the point where I can prevent a packet from reaching it's destination if my program finds something suspisious going on. I need incoming and outgoing traffic of specific adresses and ports to be forwarded into my application on my client machine. My app then should deliver packets to their destination after they were analyzed.

The parts where data is received, analyzed, manipulated if needed, and sent is something I could code with no difficulty. But the concept of redirecting and forwarding is hard for me to grasp at the moment. I'd like to know at least what winsock functions I have to use.

If it's possible, I would like to use Windows libraries only, nothing from 3rd parties.

View 3 Replies View Related

C++ :: Coin / Money Change Code Doesn't Give Exact Change

Feb 20, 2013

My coin/money change code works when there can be an exact change each time, i.e. when the 1 cent option is available. However, when the change options are only $10, $5, $1, 25 cents and 10 cents, it does not give me what I want for instance, I wanted to get change for $237.80, I was expecting to get:

23 10's, one 5, two 1's and 8 dimes. However, the code below is giving me 23 10's, one 5, two 1's and 3 quarters (there is no option left for the 5 remaining cents).how to fix it?

Code:
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
void change(double cents, int a[]);
int main() {
double Dollars;
double cents;

[code]...

View 14 Replies View Related

C# :: Mapped Network Drive - Deleting Or Moving A File

Sep 16, 2014

Currently I'm trying to do something extremely basic: delete or move a file

I have a mapped network drive (Y) where I have a file I need to move from one folder to another

First was doing the obvious:

System.IO.File.Move("Y:TempFile.txt", "Y:Temp2File.txt");

Not much to go wrong here, right? As long as I have the correct permission to write in the folders and the folders exists, this would normally go smooth. But for some reason it only copies the file. The source file still exists, but it has successfully copied the file to the destination folder. No exceptions has been thrown or anything... but the file still exists in the source directory

I then changed the code to the following:

System.IO.File.Copy("Y:TempFile.txt", "Y:Temp2File.txt");
System.IO.File.Delete("Y:TempFile.txt");
Console.WriteLine("See mommy, no Exceptions");

As expected the file copies correctly, but the delete command is completely ignored. The file is not deleted, but the Console.WriteLine command is called

I'm running the application as the logged in user. The user has permission to delete the file. If I try from Windows Explorer, the file is correctly deleted. Unfortunately my application refuses to delete the file and even worse, it will not even throw an Exception.

View 10 Replies View Related

C Sharp :: Centralize Database On The System On Local Area Network?

Aug 9, 2013

I wrote an application with wpf and c sharp. And I use ado dotnet framework to connect the database. Now the problem is I want a centralize database for the application. And I hav e installed sql server on one of the which I want to serve as server. I now want all other clients to be able to connect to the database through local area network. how will I do that?

View 2 Replies View Related

C++ :: Unicode And Win32 API Functions

Aug 11, 2014

You told me that it's better to use UNICODE all the time.

What if the Win32 Api function doesn't have a UNICODE version.

For example CryptProtectData() takes a BYTE (DATA_BLOB *) which is an unsigned char?

[Code] ......

View 7 Replies View Related

C++ :: How To Use Mouse In Win32 Console

Jan 28, 2014

I want to show and control mouse in Win32 Console. What should I do? And I want to learn MFC programing.

View 3 Replies View Related

C/C++ :: The Length Of EditBox In Win32

Feb 15, 2014

That is my routine to catch a text from editBox (ID_EDIT2) and save in a file. The address of file is in (ID_EDIT1). The code is working.

void simplewrite(HWND hwnd){
HANDLE hFile;
DWORD dwWritten;

[Code]....

My problem is: I put the size of char array txtbuffer=[200]. If I have a editbox bigger than that, I'll get a error. In (editlength) I have the correct length of edit box. But I cant initialize my char txtbuffer[editglenth]=NULL cause editlength is a integer not constant.

View 2 Replies View Related

C++ :: Win32 Tab Select Notification?

Dec 18, 2012

I understand including the comctrl32 lib and header. I know to init common controls. I can create a tab window and add tabs to it.

I just can't seem to grasp of how to tell when a specific tab has been selected. I just need to know what to look for with winproc.

View 2 Replies View Related

Visual C++ :: Application Which Print Existing File On Reception Of Network Event

Sep 10, 2014

I basically want to develop an application which print an existing file on reception of a network event (application will be running on a seven 64 bits PC).

I wonder which application type would be the most suitable (and the simplest) for that (console win32, win32 app, MFC app ...). As this application does not need user intervention (print on network event), I'm not sure that I need a MFC application or a win32 app.

View 9 Replies View Related

C/C++ :: Creating Many Push Buttons In Win32 API

Apr 13, 2014

I am pretty new to windows programming, but i get around with small applications.

Now I want to create a window with 10 push buttons, and was just wondering if there is some smart way, maybe in a loop to create multiple buttons.

Also, on a very populated window, is there a way to maybe have the WM_CREATE commands stowed away in another cpp file? Just for readabilty.

View 13 Replies View Related

Visual C++ :: Replacing GUI In Win32 Application?

May 15, 2014

I have a Win32 C++ application which works pretty well, but I don't like the GUI and I want to replace it with one designed graphically, a la Windows Forms. What is the best strategy to port my code? I tried creating a new Windows Forms C++ application and got pretty far with it, but was stymied when trying to call my unmanaged functions on a button press. If I can't use Forms to add a GUI without completely rewriting the program, what's my best bet?

View 14 Replies View Related

C++ :: Win32 API Icon Loading Error (VS2010)

Jul 9, 2013

I am trying to load an icon I created for my program. Relevant code is below:

Code:
//resource.h
#define IDR_MYMENU 103
#define IDR_MYICON 201
#define ID_HELP_NOTICE 40001
#define ID_HELP_ERROR 40002
#define ID_FILE_EXIT 40003

[Code] ....

For some reason, the icon fails to load. I ran a breakpoint at the line for the hIconSm and got this error for the variable:

Code: CXX0030: Error: expression cannot be evaluated

The icon image is in the source folder and was compiled via ImageMagick. Google is not giving me any info regarding the error and the icon combined.

View 2 Replies View Related







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