-
March 23rd, 2008, 02:11 PM
#1
SQL query in VC++
I would like to use SQL query on a label click and I don't know how. So could anyone please post the code for me? I am using VC++ WinCLR.
-
March 23rd, 2008, 02:25 PM
#2
Re: SQL query in VC++
Some info on the database you are using/going to use would be nice.
-
March 23rd, 2008, 02:31 PM
#3
Re: SQL query in VC++
I'm using database made in SQL Server 2005.
-
March 23rd, 2008, 03:04 PM
#4
Re: SQL query in VC++
I don't know what WinCLR is, but you could look into CRecordset if MFC is involved.
-
March 23rd, 2008, 03:13 PM
#5
Re: SQL query in VC++
No, I'm making CLR Windows Forms Application.
-
March 23rd, 2008, 05:55 PM
#6
Re: SQL query in VC++
Originally Posted by usingnamespace
No, I'm making CLR Windows Forms Application.
Sorry, this forum is for traditional C++ programming, not managed C++.
Unless what you have deals with non-managed C++, you should ask your question in the Managed C++ forum.
Regards,
Paul McKenzie
-
March 23rd, 2008, 06:28 PM
#7
Re: SQL query in VC++
OK, I will ask it there, but i doubt i will get any answers.
-
March 23rd, 2008, 06:37 PM
#8
Re: SQL query in VC++
Originally Posted by usingnamespace
OK, I will ask it there, but i doubt i will get any answers.
Forums were created for a reason. Please respect those reasons.
Regards,
Paul McKenzie
-
March 23rd, 2008, 06:43 PM
#9
Re: SQL query in VC++
Yes I know, but i wasn't sure if it was managed or unmanaged. Now I have read about differences between them.
-
March 23rd, 2008, 06:51 PM
#10
Re: SQL query in VC++
Originally Posted by usingnamespace
Yes I know, but i wasn't sure if it was managed or unmanaged. Now I have read about differences between them.
There is a general answer to your question, or if not an answer, a way for you to ask the question with a little more detail:
1) Do you know how to write code (regardless of the language) that is called when the Label is clicked? If not, then write that first. It doesn't matter what happens when the Label is clicked, just write the program to do that.
2) Once you get 1) done, do you know how to code an SQL Query? If not, then first learn how to code a query, regardless of whether a button is pressed.
Once you get 1) and 2), then you put the pieces of the puzzle together. Which one are you having trouble with, 1 or 2 or something else?
That is how you should have proceeded asking the question on the correct forum. Detail exactly what you can't do or have trouble doing.
Regards,
Paul McKenzie
-
March 23rd, 2008, 06:56 PM
#11
Re: SQL query in VC++
This thread is now in the Managed C++ and C++/CLI forum.
JeffB
-
March 23rd, 2008, 07:13 PM
#12
Re: SQL query in VC++
Originally Posted by Paul McKenzie
There is a general answer to your question, or if not an answer, a way for you to ask the question with a little more detail:
1) Do you know how to write code (regardless of the language) that is called when the Label is clicked? If not, then write that first. It doesn't matter what happens when the Label is clicked, just write the program to do that.
2) Once you get 1) done, do you know how to code an SQL Query? If not, then first learn how to code a query, regardless of whether a button is pressed.
Once you get 1) and 2), then you put the pieces of the puzzle together. Which one are you having trouble with, 1 or 2 or something else?
That is how you should have proceeded asking the question on the correct forum. Detail exactly what you can't do or have trouble doing.
Regards,
Paul McKenzie
I know both 1) and 2). When I click on a label i want that information from specific query is outputed to some other control.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|