hai i need c#database connection code with variable declaration and also headerfile Programming Software Development by hariharang hai i need c#database connection code with variable declaration and also headerfile HeaderFile Programming Software Development by sneha mehta i want to include using.System.Transactions header file in c# program but i m not able to do that. whats the problem i am not getting?? Re: HeaderFile Programming Software Development by Momerath C# doesn't have header files. The [icode]using[/icode] just allows you to reference objects in a namespace without having to fully specify the namespace (as long as there are no conflicts). For example: [code]using System.Transactions public void MyMethod() { Transaction t1 = new Transaction(); System.Transactions.Transaction t2 = new … Re: HeaderFile Programming Software Development by ddanbe Headers do not exist in C#. You can say [CODE=c#]using System;[/CODE] [B]using [/B]is a keyword, [B]System [/B]is a namespace I don't know what the System.Transaction namespace is. Re: HeaderFile Programming Software Development by sneha mehta thank you for reply but its still not allow me to write using System.Transactions when i write this and compile it it gives me error like The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?) now tell me what to do/.....please reply fast Re: HeaderFile Programming Software Development by Momerath [QUOTE=ddanbe;1481027]Headers do not exist in C#. You can say [CODE=c#]using System;[/CODE] [B]using [/B]is a keyword, [B]System [/B]is a namespace I don't know what the System.Transaction namespace is.[/QUOTE] It's for creating your own transaction based system where you can do things like rollbacks in case you need to. For example, let's say… Re: HeaderFile Programming Software Development by Momerath [QUOTE=sneha mehta;1481036]thank you for reply but its still not allow me to write using System.Transactions when i write this and compile it it gives me error like The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?) now tell me what to do/.....please reply fast[/… Re: HeaderFile Programming Software Development by sneha mehta ya thank you i just add this references and its working properly... Re: HeaderFile Programming Software Development by Momerath Please mark the thread solved, then :) Re: hai i need c#database connection code with variable declaration and also headerfile Programming Software Development by kvprajapati You need to start learning [URL="http://msdn.microsoft.com/en-us/vcsharp/aa336809.aspx"]C#[/URL] from the scratch. writing functions. Programming Software Development by jazzyangelz …. e. Prototype: int maximum ( int, int ); This is my headerfile so far. /************************************** headerfile ***************************************/ #ifndef FUNCTIONS_H #define FUNCTIONS_H #include <iostream> using… namespaces Programming Software Development by __vmware__ … error unresolved external symbol referenced in function _main. [CODE=CPP]//headerfile // forward declaration namespace Test { class a; class b; } namespace Test… bfunction (); }; } /// the main file #include <iostream> #include "headerfile.h" using namespace std; int main () { Test::a* a… enum, struct and array of structures in header files Programming Software Development by tdba.316 … started. The first header file created (let's call it headerFile.h), the one I'm working on, has declarations/definitions… in the source files project. In the editor tab for headerFile.h, the lines in the upper code are underlined (by… Re: enum, struct and array of structures in header files Programming Software Development by tdba.316 … reply <3 So, I rearranged my files this way: headerFile.hpp: [CODE]#include <string> enum QUALITY {QUALITY_1, QUALITY_2…; };[/CODE] objects.cpp [CODE]#include <string> #include "headerFile.hpp" std::string Description[3] = { "One", "… Problem Passing ifstream object Programming Software Development by mjacqu4 …. thanks! main function: [code] #include <fstream> #include "headerFile.h" using namespace std; int main() { ifstream Ideas; ifstream…(Ideas, Hints); return 0; } [/code] DataOne class: [code] #include "headerFile.h" #include <iostream> #include <vector>… Re: Compiling a Class in several parts?!? Programming Software Development by JoBe … previous one and started again. I didn't compile the headerfile vkv.h and after creating the other source files and… compiling them, the headerfile automatically was added towards the program :D Thing with these… Compiling a Class in several parts?!? Programming Software Development by JoBe … 0; }[/code] I understand that the "vkv.h" headerfile is needed to link the two last sections of code… Re: Compiling a Class in several parts?!? Programming Software Development by JoBe … vkv and make this into part two and three a headerfile by writing it as following: #include "vkv.h"… Plz Help me Programming Software Development by kklowanshi … class undefined " . I m not understanding the problem. The headerfile is in my directory path . Please help me what could… Writing to a file Programming Software Development by HLA91 … undeclared 5)answer undeclared [code=c++] #include<fstream>// headerfile for output/input #include<iostream> #include<string… Deep copy of a struct Programming Software Development by skatamatic … bitmap information, with a tiny bit of useful stuff). Image Headerfile: [CODE=cplusplus]#pragma once #include "Drawer.h" #include… I have a problem with QObject Programming Software Development by Barvik … same thread as the previous parent[/code] here's my headerfile: [code]#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QDate> #include… Just started Programming Software Development by cplspls I am kind of a neophite and I need your help in the following; How do you right justify the field output in the <iostream> headerfile and how would one determine the compiler one is using/ how to get the linux kernel version in cpp program Programming Software Development by scamguru I have a problem like i need to include a different header files depending on the linux kernel in a .cpp file. I have to check the linux kernel version and include the headerfile depending on that kernel. How can I do that? I have ARCH variable in Makefile which gives me exactly the kernel version, can i make use of that? help me in my assignment Programming Software Development by IT seeker … or zero if it is uppercase .this function requires the headerfile CTYPE.H WRITE a progrma tha allows the user to… an if statment Programming Software Development by mk.hashmie if(strcmp(s.name, stdname)==0) is this statment is correct? i am having an error while executing this statment.. i have givn its headerfile Re: an if statment Programming Software Development by WaltP … an error while executing this statment.. i have givn its headerfile[/QUOTE] Depends on how [I]s[/I] is defined. Depends… dynamic memory allocation of array of structures in c++ Programming Software Development by madhav024 … facing the problem while compiling the below program, program.h ------------headerfile typedef struct { unsigned char c ; unsigned int i ; unsigned long… Re: dynamic memory allocation of array of structures in c++ Programming Software Development by therockon7throw … facing the problem while compiling the below program, program.h ------------headerfile typedef struct { unsigned char c ; unsigned int i ; unsigned long… Weird problem, input for a hashtable Programming Software Development by whtewa … entry */ void ht_remove(HT *ht, char *key); /* remove entry */ /// above headerfile /// down main #include <stdio.h> #include <stdint…