C++ :: Build Application That Queries The Database?

Sep 27, 2013

I have lot of C++ API exposed in our project and I want to build an application that queries the database and shows some stuff to the user in the UI.

So, essentially, my main code is in the c++ language. What choices do I have over the UI?. I am interested in showing this UI in the form of a html page lilstening to a port.

View 1 Replies


ADVERTISEMENT

C# :: Build A Web Application That Uses P/invoke To Access A Method?

Nov 26, 2012

I am trying to build a web application that uses p/invoke to access a method. Similiar to the one used here - [URL] However I keep getting the following error message - Unable to load DLL 'MyDll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) I read say to change the output directory to match that of the Mydll directory I have tried that and it still does not work.

View 6 Replies View Related

C Sharp :: How To Save To Access Database In Application

Jan 21, 2014

I have application that codes and binds an access database to a windows form application. Everything seems to work however, nothing is actually saved in the database. Updates and deletes are coded and debugging steps through, but checking the db, the data is the same.

View 2 Replies View Related

C++ :: How To Connect Firebird Database With Console Application

Mar 26, 2012

how to connect a Firebird database with a Devc++ console application? I have tried different things with no success.

View 5 Replies View Related

C# :: Create Online Application Without Revealing Database Credentials

Jan 26, 2014

I want to make an online application which will connect to my database to do the stuff, but I don't want the credentials to be stored somewhere in the program or in an external file somewhere in the computer or hardcored in anyway in the code.

I think that a good solution is (but I don't know how to implement it): on program execution, the credentials will be downloaded from my website somehow in an encrypted type maybe, from an api or so.

I've not tried before to make an online application, it's the first time. But I do have knowledge of SQL and PHP and I want to try a project like this.

The technology I am going to or can use is:
* Visual C# (in Visual Studio 2010 Ultimate)
* MySQL Connector/NET
* MySQL Database on a shared host
* PHP (if needed)

View 10 Replies View Related

C# :: How To Combine Two SQL Queries Into One

May 21, 2014

update Tag_Master set flag='Inactive' where Tag_no=10;

update Tag_Master set flag='Assigned' where Tag_no=12;

I had these two queries, I just want both of these will fire on same event. Is any other way to write both queries in single query instead of writing two different queries ....

View 4 Replies View Related

C/C++ :: Queries Using String Compare

Oct 31, 2014

I am trying to get a list of queries to work right now. I have it so that the user will input 1 of 5 things to compare twin primes in a list. I am just trying to get the queries working fully before actually determining the twin primes that need to be output. The console input will be something like "<= 61" and will display all twin primes from 3 to 61, inclusive.

Well, I thought I had it 100%... Then I realized I have a problem, though. So, I'm reading the string in until a space so I can read in the number after that. So that works fine, but then I also want the "all" and "random" console inputs to work, but they won't unless I put a space after them, which is what I'm trying to avoid...

So, I tried just simply asking for another console input after all of my if statements for the string compare after the first console input. That obviously doesn't work either, though, because it still only wants the first "getline" where it reads until the whitespace.

How to be able to do both on the same console input... The relevant code is posted below:

cout << endl << "What do you want to know about your list of twin primes?" << endl;
string qprompt1;
string qprompt2;
getline(cin, qprompt1, ' ');
string comp1 = ">";
string comp2 = ">=";

[Code] .....

View 5 Replies View Related

C# :: Running 2 Separate Queries But Getting Parameter Should Not Be Null

Feb 1, 2015

I am trying to run the following 2 separate queries but keep getting the following error message:

I've looked at the database and the first query is successful (hence the parameter is not null) but it fails at the cmd.ExecuteNonQuery(); in for (var i = 0; i < _waypointList.Count; i++) { ... }

Code below:

var query =
@"INSERT INTO booking (operator_id, plot_id, postcode, datetime, stops, " +
"mileage, price, passengers, name, note, phone, status, reference) " +

[Code]......

View 2 Replies View Related

Visual C++ :: CDHtmlDialog Not Working With CSS Media Queries

Feb 21, 2014

I have a CDHtmlDialog app in which am trying to add a CSS media query in the HTML file as shown below, but it doesn't work.

@media (max-width:20em) {
table, thead, tbody, tfoot, th, td, tr { display:block; }
tr + tr { margin-top:1em; }
}

The same CSS works fine if i open in a browser like IE, FireFox, Chrome. But inside the CDHtmlDialog app this doesn't work.

I am using Visual Studio 2012 for development and have IE 11 installed in my machine.

View 1 Replies View Related

C :: Program That Queries User For A Noun And Forms Its Plural On The Basis Of Rules

Nov 13, 2014

I am having trouble with a program that queries the user for a noun and forms its plural on the basis of these rules:

a. If the noun ends in "y" remove the "y" and add "ies".
b. If the noun ends in "s", "ch", or "sh" add "es".
c. In all other cases, add "s".

I am having trouble getting started.

View 4 Replies View Related

C# :: Server Application Using Tcp Protocol And Then Establish Connection With A Client Application

Nov 29, 2014

What happens if I make a server application using tcp protocol and then establish connection with a client application but the server crash and then the client send data. Will the data be lost or the system will continue trying to send it?

View 2 Replies View Related

C# :: How To Start Application And Automatically Pass Input To That Application

May 9, 2012

I want to create an application that starts an application and passes input to that application. I know how to start a process using the classes in System.Diagnostics, but I don't know how to pass data to the process.

For example, and this is just an example, I would like to be able to automatically start an application that requires a username and password and automatically enter the username and password. Of course, that might open the door to security vulnerabilities, but that's not the point of the exercise.

How to implement the functionality I described? Is there a general way to go about doing this or does it depend entirely on the idiosyncrasies of the application in question?

View 2 Replies View Related

C++ :: How To Build A Custom Allocator

Feb 7, 2014

I'm trying to write a custom allocator that I can use with the STL. Here's what I have so far :

Code:
#include <cstddef>
#include <iostream>
#include <memory>
#include <vector>
template<class T>
struct customallocator {

[Code].....

I'm doing and currently, my push_back doesn't seem to do anything.

View 12 Replies View Related

C++ :: Build Own Library (static)

Sep 11, 2014

How to build the static library on my own using visual C++ 2008.

I used the following code to create the header file and cpp of the library.but I am unable to compile due to the following error.

// MathFuncsLib.h
namespace MathFuncs {
class MyMathFuncs {
public:
// Returns a + b
static double Add(double a, double b);

[Code] .....

Error I get while it is compiled :
Error3error C2653: 'MyMathFuncs' : is not a class or namespace name

View 4 Replies View Related

C++ :: Build Events Like Another Languages?

Sep 28, 2013

class test {
private:
string name="";
public:
event void changedname();
void setname(string value)

[code]....

i get error about 'a' and 'b' not be a class. but using a template can i validate these code?

my problem is that i don't know how to use objects outside of functions / these is polymorphism, but not accepted by C++

View 12 Replies View Related

C/C++ :: How To Build Array In A Function

Apr 6, 2014

I need to build an array in a function and return that array. Well, two arrays actually, which means I can't return it in the return statement.

Long term, this function/method is supposed to return two populated buffers for further processing. The buffers/arrays are loaded from a file. So, the size of the array is completely unknown until after the file is read. So, you can't have a fixed size array until the function is almost ready to return.

I'm hardcoding the arrays here for testing purposes, but eventually they will be loaded in from a file. That's the whole purpose of this.

Anyway, I need to pass the arrays that are created in this function/method to the caller. But I can't figure out how to do it. The code "almost" works, except that it's overwriting my array when it returns.

Here's the method:

bool GameModelClass::LoadBuffersFromPUNCFile(std::wstring PUNCFileName, VERTEX* &VertexListPointer, unsigned int* &IndexListPointer) {
VERTEX GroundVertexList[4] = {

[Code]....

VertexListPointer returns the correct data structure (actually its an array of structures). The problem is that the first time I use the other variables it over rights the array. The pointer still points to the same spot, but VertexBufferDescription is next to the VertexListPointer and so completely overwrites it.

What I "think" I want is to allocate the array in a totally different area of memory. VertexListPointer should be a pointer, not a contiguous block of memory. It should point to the contiguous block of memory elsewhere.

This is where my weak understanding of pointers comes back to bite me in the posterior end.

In the end, I just want to pass back two arrays/buffers to be used by the calling code.

View 14 Replies View Related

C Sharp :: Run Application When Log Off In Console Application

Oct 4, 2012

i have task scheduling application which execute every 30 minute i want to keep this process when system is log off in c# console application

View 2 Replies View Related

C++ :: How To Build Binary Tree With Values

Dec 29, 2013

I am not sure how to build the tree with values:

Code:
struct Node *root = 1 root->left = 2
root->right = 3
root->left->left = 4;
root->left->right = 5;

Everything should be right except the main(). How to demonstrate this program correctly?

Code:
#include <iostream>
#include<stdio.h>
#include<stdlib.h>
#include <stack> // std::stack

[Code] .....

View 8 Replies View Related

C++ :: Build Min Heap With No Repeating Values

Jul 10, 2013

10,11,20,1512,22,24,19,22

i want to write a c++ program to build min heap which gets above values from user. remember this program should not alloduplicate values to enter. it should discard duplicate values.

View 11 Replies View Related

C++ :: How To Build SMTP Mail Client

Jul 18, 2013

i have four email adresses (for various reasons) and i could probably find a client for all three on source forge, but i thought it would be good practice to use my own. i want to use boost, sdl, and c++, but i cant find a tutorial.

View 2 Replies View Related

C/C++ :: Build A Sales Company Class?

Jul 1, 2014

Build a class named "salesCompany". Save it's name with a string and an array with records which will be filled with values from sales in different cities of the company.

Build the constructor which must get as a parameter the name of the company and a text file which will fill the array. There is an example of the text file format. Every line saves the sold quantity of a product, identified by a code, in a certain city.

CodeCityQuantity
1a63bCity11200
45ab8City2550
#include <iostream>
#include <string.h>
using namespace std;
class salesCompany {

[code].....

what should I add more and how can make it available for the user to enter as an input a text file.

View 1 Replies View Related

Visual C++ :: Functions Were Discarded On Build Of DLL With 8.0

Dec 9, 2012

I want to build a dll library with visual c++ 8.0 and got an "unresolved symbol" linker error message when trying to use the library with an application. So I checked the dll library with dependency walker for the exported functions, the needed functions were missing in the library.

I then dumped the corresponding object file with dumpbin.exe, the function was declared as public, like the other exported functions. On the next step, I set the verbose switch for link.exe.

The verbose log told me, that the function was discarded on the linker run. What can lead to that behaviour of the visual c++ linker ?

View 3 Replies View Related

C :: Build A Linux Process Scheduler From Scratch

Apr 5, 2013

I'm trying to build a Linux Process Scheduler from scratch but dont know where to start.

View 1 Replies View Related

C# :: Way To Build Project To Dynamic Linking Language

Dec 28, 2011

I have a project C# and i want to build it to .dll for use in ASP.Net project . Any way to do it. It look like my attachments image .

View 1 Replies View Related

C++ :: Build Full Computer Algebra System?

Apr 1, 2013

Im trying to build a full computer algebra system in c++

View 1 Replies View Related

C/C++ :: Build Error When Trying To Include Another Custom Class?

Mar 15, 2015

I have a class like this:

#include <string>
using namespace std;
//-----------------------------------------------
class Prenumeratorius {
private:
string pavarde;
string adresas;
string leidinioKodas;

[code]....

bunch of variables, constructor, setter and getter.And I have this class:

#include <vector>
class Leidinys {
private:
string kodas;
string pavadinimas;
double vienetoKaina;

[code]....

in to my "Leidinys.h" header file, I get a build error, I tried to remove same includes in both files, that didn't worked.

View 3 Replies View Related







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