4,928 Topics

Member Avatar for
Member Avatar for Jay Johengen

My hosting provider assigns the server name, database name, user name and password after I import/upload my SQL server database to them. When I run locally for testing it will be different. How can I effectively test and publish my site without having to change this all the time?

Member Avatar for Fortinbra
0
132
Member Avatar for lianpiau

Who can teach me how to make Class to store database location When want to use just call the location. Everytime I will write again the connection. When database location is change, I will change the database location one by one. This is time consuming and difficult to maintain program. …

Member Avatar for lianpiau
0
478
Member Avatar for chocoprincess

the path is correct, and there is no error, but still, my database is empty... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Along\Documents\Visual Studio 2008\Projects\LCRS\LCRS\Lcrsd.mdb;") Dim myCommand As OleDbCommand Dim mySQLString As String Try myConnection.Open() mySQLString = "INSERT INTO REKOD_PELAJAR …

Member Avatar for deepakmjoshi
0
114
Member Avatar for emaduddeen

Hi Everyone, I have a table that has a 2 column primary key. I set up the key where the 2nd column is an identity column. When I ran my VB application I discovered the ID (2nd column) did not increment the correct way. I was hoping it would increment …

Member Avatar for emaduddeen
0
183
Member Avatar for stimp80

I'm working on a Windows Form Application in Visual Studio 2010. I have a Database that I am using to pull data to dynamically create checkboxes inside a loop. In between each of these, I'm creating a child loop to create more checkboxes from a sorted DataSet. At the end …

0
54
Member Avatar for azencot

Hello, I am not sure if this is the place to ask. I develop an algorithm in C++ under Windows XP with Visual studio 2008, the algorithm is proved to be linear ( O(n) ), there is a usage of memory during the algorithm ( all of it is being …

Member Avatar for azencot
0
181
Member Avatar for D.Twomey

Hi guys/girls, I have an exe that has been written in C# using visual studio Is there a was I can de-compile it back into the C# code - It seems to be some what protected exe files I've created myself using Visual Studio and C# I can see the …

Member Avatar for Momerath
0
757
Member Avatar for dyingatmidnight

Hello, first I want to say I'm a total noob to C++ and Visual Studio and MFC. Before this I studied Java in school. Anyway I'm required to learn MFC for work and I've been going through a reference book my supervisor has and I've run into an error that …

Member Avatar for Ancient Dragon
0
594
Member Avatar for cppgangster

Hi, I want to learn mfc, but as I read in wiki mfc is not included in visual express editions, IS THE ONLY WAY TO LEARN MFC is buying visual studio software? are there any other solutions?

Member Avatar for Moschops
0
136
Member Avatar for stimp80

I'm working on a Windows Forms application created in Visual Studio 2010. Working with 2 different forms, I have a ComboBox on the first form that is databound to the client table of my database. Also on the first form is a link-label that opens the second form without closing …

Member Avatar for stimp80
0
331
Member Avatar for baldwindc

I am taking a data structures class and we are using the standard gcc compiler on a unix system. This is fine and I have no troubles using it, but I would like to begin using an IDE for my labs. I am trying Visual Studio 2010 Professional with my …

Member Avatar for baldwindc
0
242
Member Avatar for darelet

Hi all, I'm trying to implement a blob coloring/region labeling algorithm to find and label all blobs/objects in a given image so that at the end of it, I can eliminate all but the largest object. I represented the image by a mask matrix (int binary[image size]) where zero co-ordinate …

0
93
Member Avatar for Danny1994

[CODE]void Form1::textBox9_KeyPress(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e) { if(!Char::IsDigit(e->KeyChar) && (e->KeyChar != 0x08)) e->Handled = true; }[/CODE]Thats the code i got, but, how could i allow CTRL+V. [CODE] if(Char::IsDigit(e->KeyChar)) return; if(e->KeyChar=='\b') return; if(e->KeyChar=='\v') return; if(e->KeyChar=='CTRL') return; e->Handled=true;[/CODE] This also doesn't work ._. (Im using Visual Studio 2010)

Member Avatar for Danny1994
0
342
Member Avatar for croker10

Hi All, Hopefully someone has had this problem in the past and can point me in the right direction. In the last couple days the ASP.NET development server has slowed down to nearly a halt when starting and stopping debugging, by that I mean anywhere from 5-7 minutes before the …

Member Avatar for croker10
0
201
Member Avatar for alex-VX

Hi im kinda new to c++ and dont know mutch aboute unsolved externals this is what i get: [ICODE]pices.obj : error LNK2019: unresolved external symbol "private: int __thiscall Pices::MovePawn(int,int,int,int,struct Piece (* const)[12])" (?MovePawn@Pices@@AAEHHHHHQAY0M@UPiece@@@Z) referenced in function "public: int __thiscall Pices::MovePlayer(int,int,int,int,struct Piece (* const)[12])" (?MovePlayer@Pices@@QAEHHHHHQAY0M@UPiece@@@Z) pices.obj : error LNK2019: unresolved external …

Member Avatar for alex-VX
0
168
Member Avatar for sharensla

hello Hope u all be fine Plz help i want to create a single database host in a server that is access by both ASP.net website and access remotely by windows mobile Application. The user want to easily update,create,delete their record through mobile application and update,create,delete their record through Asp.net …

0
73
Member Avatar for Jutch

I am trying to compile a my code for a GUI project and for some reason it's giving me fatal error c1075. I'll post the code and output message. Let me know what it wants me to do. There is only one set of braces so I don't know what …

Member Avatar for jonsca
0
218
Member Avatar for cppnewb

Hi. I am using Visual Studio 2010 for coding in C++. When I'm coding, I often make it to the bottom of the screen and the line of code I'm typing ends up at the bottom of the window - very annoying. I was wondering if anyone knew of a …

0
64
Member Avatar for VasquezPL

I've heared that its very easy to add c++ code to c++/cli project (net.framework @ Visual Studio 2010) Unfortunatelly I cant do that. I was seraching all over the internet and I cant find any decent examples. All I want to do is to make a function that will read …

Member Avatar for VasquezPL
0
1K
Member Avatar for AFinger

I'm using Visual Studio 2010 C++ Express and connecting via ODBC to MS SQL Server 2008 R2 Express. My question is: Is there any way I can pass some type of pointer into SqlGetData instead of an actual data type, then stuff that reference into a void pointer for the …

Member Avatar for AFinger
0
180
Member Avatar for jember

I need immediate help here. Please help me! :) I just can't figure out why my program is crashing while executing it. The compiling of the program is fine. (no syntax errors) I used Dev C++ 4.9 for this version. [QUOTE][CODE] #include <iostream> #include <conio.h> #include <iomanip> #include <string> using …

Member Avatar for jember
0
159
Member Avatar for Kunal Aggarwal

[CODE]void CScreenCoordDlg::OnMouseMove(UINT nFlags, CPoint p) { GetCursorPos(&p); m_ValX = p.x; m_ValY = p.y; UpdateData(FALSE); }[/CODE] I used the following code to get the mouse coordinates on mouse move. But the problem is as soon as the mouse moves out of the dialog window it stops updating the mouse coordinates. Although …

0
110
Member Avatar for lochnessmonster

im curious as to why when i make a dll win 32 project in visual studio 2010, it doesnt show my dllmain function so i can work off that and leaves me with an blank .cpp.(and no i didnt click empty project). How can i fix this? -thx

Member Avatar for Ancient Dragon
0
42
Member Avatar for strungoutfan78

Hey everyone. I'm brand new to C++ and programming in general and this is my first post here. I've found lots of good info here and these forums helped me a lot last semester. I've got a problem here though. This is a small bit of code I had to …

Member Avatar for strungoutfan78
0
399
Member Avatar for LKMaxwell

All, I’m new to C++ and trying to figure out the best way to do a multidimensional array of pointers to a class. The code I am presenting demonstrates several questions I had and am hoping to get some help with each question. The basic idea is to create myMatrix, …

Member Avatar for pseudorandom21
0
240
Member Avatar for format_c

error C2784: 'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_istream<_Elem,_Traits> &' from 'std::ifstream' 1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string(527) : see declaration of 'std::getline' [CODE]void read() { Inventory items[100]; string line; int i=0; ifstream inventdata; inventdata.open("Inventory.dat", ios::in); if( !inventdata ) { cout << "ERROR: Unable to …

Member Avatar for Fbody
0
483
Member Avatar for danholding

Hi all i have been dancing around this problem for a couple of weeks now and have not got any closer. Description: i have created a crystal report in SQL5 and exported it fine but now i have gone to open it in visual studio 2008 and it does not …

Member Avatar for danholding
0
175
Member Avatar for MykMallett

I am asking on multiple forums because I am desperate! Hi, firstly I would just like to say that I am not a C++ programmer and I never intend to be - I am an SQL, javascript and PHP developer. For a module at University I have to alter a …

Member Avatar for Moschops
0
248
Member Avatar for DGeneral

Hello, I took a C++ code from a colleague which uses OpenCV for image processing, and when I try to debug the program using Visual Studio 2008, as soon as the black output window pops up, I get the following error (Windows error, not code error): [B]"The program can't start …

Member Avatar for pseudorandom21
0
269
Member Avatar for kgenn

[CODE] Protected Sub Gridview1_RowUpdating(ByVal sender As Object, ByVal e As GridViewUpdateEventArgs) Dim txtR, txtP, txtC, txtCo, txtB, txtL, txtF, txtM, txtPo, txtSu, txtS As TextBox Dim row As GridViewRow = GridView1.Rows(e.RowIndex) txtR = CType(row.Cells(1).Controls(0), TextBox) txtP = CType(row.Cells(2).Controls(0), TextBox) txtC = CType(row.Cells(3).Controls(0), TextBox) txtB = CType(row.Cells(4).Controls(0), TextBox) txtCo = CType(row.Cells(5).Controls(0), …

0
60
Member Avatar for kgenn

the code is for binding data from a gridview [CODE] Sub BindGrid() Dim connection As OleDbConnection connection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\Users\Karl Gennadi\Desktop\Visual Studio 2008\WebSite3\Database\dbLupon.mdb") connection.Open() Dim command As OleDbCommand command = New OleDbCommand("Select LAST_M, UNIQUE_C from tblLupon_C", connection) Dim DataReader As OleDbDataReader DataReader = command.ExecuteReader() GridView1.DataSource = DataReader GridView1.DataBind() connection.Close() …

Member Avatar for kgenn
0
473
Member Avatar for realproskater

Im getting this error while im working on my pig latin code and have no idea what it is referring too. so here is the error and my code. ill specify the piece of code that is erroring. [code] #include <iostream> #include <fstream> #include <string> using namespace std; bool isVowel(char …

Member Avatar for realproskater
0
183
Member Avatar for funfullson

Hi dears. I wrote a program in C# with visual studio 2010 an now need to ensure that my program will work on any system with XP or seven or vista windows version. I used from .net & directX in my project. How can i compact it with an installer …

Member Avatar for funfullson
0
74
Member Avatar for jonnod123

Hi All, Just a quick question to see what others think is the best preactise... You have an Windows application that connects to a SQL Server DB. You use a dataset to represent the database locally. Is it better to write queries locally in your dataset, or in SQL Server …

Member Avatar for jonnod123
0
100
Member Avatar for welp

b.cpp [CODE] #include"a.h" #include"a.cpp" int main(){} [/CODE] a.cpp [CODE] #include"a.h" a::a(): b(0) { } [/CODE] a.h [CODE] #ifndef A #define A class a{ int b; a(); }; #endif [/CODE] Getting; "1>b.obj : error LNK2005: "private: __thiscall a::a(void)" (??0a@@AAE@XZ) already defined in a.obj" when trying to compile. Using Visual Studio 2010, …

Member Avatar for Ancient Dragon
0
299
Member Avatar for Enderz

I am trying to learn C# and have an idea for an application. I am building a windows form application in C# that will convert an area code from my Access database into the time zone that area code is located in. I have the database connected to Visual Basic …

0
99
Member Avatar for twsmale

Okay, so I've been searching the internet for hours trying to find the solution to my problem. Many came close, but didn't describe exactly what I want to do. I have an excel file that displays the names, locations and other information about certain servers for work. I want to …

Member Avatar for twsmale
0
148
Member Avatar for C#Jonathan

Hi, I'm working with Visual Studio 2008 Team System and SQL Server 2008. I have some RDLC files used to generate reports and the reports render correctly. Currently though only Excel and PDF export formats are available. Can anyone tell me what I need to do to enable CSV exports …

Member Avatar for Momerath
0
100
Member Avatar for c++probeginner

[QUOTE] I'm having trouble getting the player's name and score to display as well as the average score. I have been at this for about 3 hours. I think it's time for a fresh set of eyes. Can someone please help?! This assignment is due tomorrow. Thanks [/QUOTE] [CODE]#include <iostream> …

Member Avatar for kimmyfufu
0
192
Member Avatar for C#Jonathan

Hi, I've just migrated an application to Visual Studio 2010 and upgraded a third party add-on called Visual WebGUI to .Net 4. I now have a problem with assembly references to the third party DLLs The latest version of the Visual.WebGui.Forms DLL for example is at 4.0..... . Our application …

Member Avatar for C#Jonathan
0
149
Member Avatar for Violet_82

Hi there, I am doing an exercise from a c++ book, but I get few errors that I can't seem to be able to fix, and I am not quite sure why. The exercise goes:" In a right triangle with dimensions side1, side2 and hypotenuse, find all Pythagorean triples for …

Member Avatar for Violet_82
0
904
Member Avatar for marijnkampf

I think my girlfriends netbook has become infected with a rootkit virus thingy. I've tried several things the latest of which was reinstalling Windows XP. Unfortunately search results in Google still redirect to random shopping websites. Below the various log files as requested. Any help will be appreciated! mbam log: …

Member Avatar for crunchie
0
306
Member Avatar for triumphost

Note: I program in C++ Not C#. In visual studio 2010, Where u press release or debug, next to it has a box with win32.. How can I change it to x86.. I tried pressing New and edit and stuff and configuration manager but it doesnt have the x86 choice... …

Member Avatar for Ancient Dragon
0
384
Member Avatar for mohamed_nasr

At debugging the code, the program gives 2 errors Error 1 error LNK2001: unresolved external symbol _mainCRTStartup Error 2 error LNK1120: 1 unresolved externals

Member Avatar for mohamed_nasr
0
594
Member Avatar for trante

I use Visual Studio 2005 on windows XP. I'm trying to use "Google Test" framework. But i couldn't manage to make just one test because of linker errors. I built Google Test, thank created new project. Then made the steps written in [URL="http://stackoverflow.com/questions/531941/how-to-setup-google-c-testing-framework-gtest-on-visual-studio-2005"]this link[/URL] to the project properties file. Than …

Member Avatar for trante
0
531
Member Avatar for L3gacy

I use Microsoft Visual Studio Professional on my Desktop PC, but my GTX 260 just failed and im dojng an RMA, so I started trying to program on my laptop. I am around 1/3 of the way through Ivor Hortons Beginning Visual C++, the book covers Native C++ and C++/CLI, …

Member Avatar for mike_2000_17
0
401
Member Avatar for triumphost

Hi Everyone, Im using visual studio 2010 windows form application. I created a windows form application to add and remove files to a directory on the click of the button1. The problem is that when I put it on a different computer, it can never find those files.. Its supposed …

Member Avatar for triumphost
0
189
Member Avatar for mackemforever

I've been set in a lab session at University the task of creating a program which can perform one of a variety of calculations, with it performing the one specified by the user, and with it looping back after every calculation however it is the looping which is causing me …

Member Avatar for chrjs
0
149
Member Avatar for TailsTheFox

Hello, I am wondering how you read input from a text box in microsoft visual studio Forms. I'm trying to make a program that reads text box data and tells you the readout, but I don't know what to type to return the data typed in a text box. Please …

Member Avatar for TailsTheFox
0
112
Member Avatar for prahesh

Hi I am creating a Setup and Deployment project using Visual Studio 2008, professional edition. And I was able to build successfully the desired .msi and setup.exe files. Requirement: But I want to create a Setup project which searches registry entries for the pre-installed software (VISA) and install our setup …

Member Avatar for Ancient Dragon
0
192

The End.