|
Wouldn't it be easier to use a vector?
|
|
|
|
|
What is the size of the data? an array of what ?
dynamic arrays might or might not fix your problem if it's a size issue.
|
|
|
|
|
75,200 int s would require 300,800 bytes of stack. If that were a double , it would require 601,600 bytes of stack, over half of the default value. Pass that around to only a few functions and the stack could be exhausted very easily.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
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
|
|
|
|