|
Sir,
I want to connect the database(Sql Server) to vc++.net 1.1 programically.I also want to use insert delete update queries in the form .Please help me or please send any link for the problem.
Thanks.
|
|
|
|
|
|
I am creating a class which is more of a wrapper for functions than a class. There are no member variables to worry about. All the functions are static and can be accessed using a namespace or creating an instance. Is there a method of creating the whole class as static rather than prefixing each function definition with the keyword static?
|
|
|
|
|
If there are no member variables, why even make it a class? Why not just put each of those functions into a namespace?
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
I have never seen this before. How would you do that?
|
|
|
|
|
something like :
namespace Potato
{
void Fry();
void Boil();
void Bake();
};
Patato::Fry();
using Potato;
Fry();
|
|
|
|
|
Perfect. Now, I wonder in the back of which book that was hiding?
|
|
|
|
|
Hi
I am using AfxBeginThread function for creating a Thread. I need to create multiple threads inside a loop. In this case, i will be passing the same control function address to different Afxbeginthread (). Will it be a problem to pass the same function address to different Afxbeginthread ()?
Note: I won't be waiting inside the Loop to start the next Thread.
Please let me know your comments on this
Thanx in Advance.
"You must do things that you think you cannot do"
- Eleanor Roosevelt
|
|
|
|
|
Raul_Figous wrote: I am using AfxBeginThread function for creating a Thread. I need to create multiple threads inside a loop. In this case, i will be passing the same control function address to different Afxbeginthread (). Will it be a problem to pass the same function address to different Afxbeginthread ()?
You won't have a problem here. However, as a performance thing, you might want to create each one suspended and then resume them after each is created.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Raul_Figous wrote: I need to create multiple threads inside a loop.
How many? Any more than 5 or 10 and you should consider using a pool.
What are you doing in them? If you can use overlapped IO that would be better than threads.
led mike
|
|
|
|
|
Hi Friends
I have a path as given below , now i wish to know whether the path given below is a file or folder.
I tried using OpenFile Function but it does not work for long names.
"C:\New Folder (4)\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Text Document.txt"
Thanks in advance.
|
|
|
|
|
How about PathIsDirectory() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi Buddy
Thanks a lot.
It works .
Regards
|
|
|
|
|
hi i m selecting the item from the list controll through mouse click and want to get the item on which mouse was clicked, i mean selected item i tried the function of clistctrl but was not successful.
there is function which tells the position of selected item but no func to get he value of slected item like getitem() which gives the item fron list controll,
i had not found any func which takes the position and give the item text.
Tasleem Arif
|
|
|
|
|
Hi,
The list controls holds collections,Hence you have to cast it to specific datatype while you get the value of the selected item..
Like ...
private void listBox1_SelectedIndexChanged(object sender, System.EventArgs e)
{
string t=(string)listBox1.SelectedItem;
}
Hope this works..
Luck is Opportunity with hardwork
|
|
|
|
|
i m using vc 6 not vb.net or C#.
Tasleem Arif
|
|
|
|
|
|
tasleem143 wrote: ...i tried the function of clistctrl but was not successful.
Which function method?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
as i describled above there is one func which can be used for getting selected items.
like getFirstselecteditemposition n dont know how to get the selected item from that as there is no function to get the tesxt.
Tasleem Arif
|
|
|
|
|
tasleem143 wrote: there is one func which can be used for getting selected items.
Actually, there's more than one. What's wrong with:
int nItem = listctrl.GetNextItem(-1, LVNI_SELECTED);
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
it did worked.
Tasleem Arif
|
|
|
|
|
how share the vb.net application to all machine with mediaplayer concept
|
|
|
|
|
|
(I'm using menus from the Dundas Toolkit, but I'm not certain it's relevant )
In one of our menu, not the longest one, the last item is a small "down" arrow/triangle, like the one used to expand a menu in some applications where menu items are hidden when not often used.
In my case, it does not expand anything, the menu is completly shown.
Is there an API somewhere that can tell me if a menu will be shown expanded or simply show the "most recently used items" ?
Or what can I google for to look for an answer ?
Thanks
Max.
Ok, I figured it out.
There was a separator as the first item of the menu that I did not see, and it seems to be playing havoc with Dundas ( so it was related to Dundas )
So yet another happy customer !!
-- modified at 10:39 Friday 22nd September, 2006
|
|
|
|
|
I want to use it as a server display .
Which will display many things like IP etc.
and it will go on displaying data as it reaches server.
How do I update my attached m_strEdit variable to show many things without deleting the previous received data at Edit box.
Rahul
|
|
|
|