|
jparken wrote: Java is VERY similar to C++.
Only in syntax.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Tons of stuff here[^]
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
|
|
Please give some example for this function.
I want to delete set of file in "Temp" folder.
|
|
|
|
|
Max++ wrote: Please give some example for this function.
Have you tried Googling for such?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi guys
I have been trying to compile an app in Visual Studio 2005(its a c++ app) but every time i run the proggy after compiling it, it looks like this:
After Compiling: Click Me[^]
although when i click on the Test Dialog button in Visual Studio 2005 it shows the apps layout like this:
Using Test Dialog: Click Me[^]
I started the project in Visual Studio 2005 and the first time when i compiled the app after adding just a simple button ,nothing else, it worked and my app was compiled in the VS2005 format although after adding som functions and stuff it compiled in Visual C++ 6 format!
Visual Studio 2005 Format: Click Me[^]
Visual C++ 6 Format: Click Me[^]
Now my problem is that i want the program to compile and have the style that it has when u click on Test Dialog. Like this:
I want the app to compile and look like this:Click Here[^]
Could someone please help me with this problem?
Thanks
|
|
|
|
|
Have you ever tried Google Notebook? After install the software, it will add a button at the bottom-right corner of IE. Dose anybody know how to implement that ? Any reply is appreciated.
Thanks
R.Y.J
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
rryyjw wrote: will add a button at the bottom-right corner of IE. Dose anybody know how to implement that ? Any reply is appreciated.
thats done by hooking, there are tons of article here at codeproject.. try WinPin!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello,
I have a vertical left aligned toolbar, but I contains quite a few buttons so I would like to split it into to rows. Is this possible ?
Thanks,
Ben
|
|
|
|
|
Hi,
I have a DLL built in VS 2005 and an application built in VS 2005.
when I use release version of lib, I get link errors.
I am statically linking .lib in app project.
release APP - debug lib -> OK
release APP - release lib - Link error
what could be the issue ???
- KK
|
|
|
|
|
kk_vp wrote: link errors
what are the errors ??
|
|
|
|
|
The error is
error LNK2001: unresolved external symbol __imp__<api name="">
I think this is the same error we get if the .lib could not be linked.
If I use the debug version of .lib, it links without any error.
- KK
|
|
|
|
|
I got it solved!
In calling convention (Project settings->c++->advanced)
I had __stdcall (/Gz) which should have been __cdecl (/Gd)
changed it and got it working !
- KK
|
|
|
|
|
Hello, in visual studio 2005, is is possible to build the program to x64 target insted of x86.
1.will i see any imporivement with my programs?
2.should i need to use special instructions?
3. why the program wion't let me build with x64? i have 64 bit proccesor (intel pentum d)
Thank you.
|
|
|
|
|
How to speed up my Database ? i use ODBC driver visualfoxpro 6.0 database !
this is my code that fill in my CListCtrl if you have an ideea on how to speed up please tell me !!!!!
void CDtsc::FillList()
{
CDatabase_Plan* pPlan = new CDatabase_Plan();
if (!pPlan->Open())
return;
if (pPlan->IsOpen())
{
int x = 0;
while (!pPlan->IsEOF() )
{
m_list.InsertItem(x, pPlan->m_name);
m_list.SetItemText(x, 1, pPlan->m_den);
pPlan->Move(1);
x++;
}
m_list.Invalidate();
m_list.UpdateWindow();
}
pPlan->Close();
delete pPlan;
}
Bravoone
|
|
|
|
|
I can say one thing.Did you try to previous answers(of all members) and they arent helpful for you?
|
|
|
|
|
Flaviu_2006 wrote: How to speed up my Database ?
Unless you have actual metrics, this is meaningless.
Flaviu_2006 wrote: m_list.InsertItem(x, pPlan->m_name);
m_list.SetItemText(x, 1, pPlan->m_den);
Do you just refuse to pay attention?
int nIndex = m_list.InsertItem(x, pPlan->m_name);
m_list.SetItemText(nIndex, 1, pPlan->m_den);
If you are trying to (unnecessarily) populate the list control with thousands of items, that is probably your problem. How many items can you reasonably work with at any given time? Using a virtual list control has been suggested to you at least three times, yet you insist on not heeding the advice. I'm not saying it is the answer to your problem, but if you are too lazy to even try it, why bother asking for continued help?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
didn't we answer this already ?
anyway, what is the bottleneck ? filling the list or reading from the database ?
|
|
|
|
|
You should use a virtual listctrl.
Take a look at http://www.codeproject.com/listctrl/virtuallist.asp
Vinicius
|
|
|
|
|
Hiya,
I'm making a program that'll copy random music directories (being cd's) onto my telephone memorycard. To test the basics, I first programmed a consoleapp that'll index all the dirs of my musicfolder. Below is the code thus far:
#include "stdafx.h"<br />
#include "windows.h"<br />
#include <iostream.h><br />
#include <string.h><br />
<br />
#define MAX_DIRECTORIES_CHECK 200<br />
<br />
typedef struct{<br />
int index;<br />
bool isEmpty;<br />
char foldername[120];<br />
}foldernamestruct;<br />
<br />
foldernamestruct fns[MAX_DIRECTORIES_CHECK];<br />
<br />
int listDirectories(char* directory){<br />
HANDLE hFile;<br />
WIN32_FIND_DATA FileInformation;<br />
<br />
hFile = ::FindFirstFile(directory, &FileInformation);<br />
<br />
if(hFile == INVALID_HANDLE_VALUE)<br />
return 3;<br />
<br />
strcpy(FileInformation.cFileName, fns[0].foldername);<br />
fns[0].isEmpty = 0;<br />
fns[0].index = 1;<br />
<br />
printf ("First file name is %s.\n", FileInformation.cFileName);<br />
printf(directory);<br />
printf(FileInformation.cFileName);<br />
printf("\n");<br />
printf(fns[0].foldername);<br />
printf("\n");<br />
<br />
<br />
<br />
return 1;<br />
}<br />
<br />
int main(int argc, char* argv[]){<br />
char name[120];<br />
<br />
for(int i = 0; i<MAX_DIRECTORIES_CHECK; i++){<br />
fns[i].isEmpty = TRUE;<br />
fns[i].index = -1;<br />
}<br />
<br />
if(listDirectories("C:\\Documents and Settings\\User\\My documents\\My music")!=1)<br />
return 1;<br />
<br />
<br />
<br />
cin >> name[4];<br />
return 0;<br />
}
Now, I tried to test the whole by printing the foldernames using printf(), but why won't this work Have I done something wrong? Can someone help me find the answer...
Thanks
|
|
|
|
|
Geennaam82 wrote: ...but why won't this work
What doesn't work? Is it a compiler/linker error. Is an exception being thrown? Have you stepped through the code using the debugger?
Geennaam82 wrote: foldernamestruct fns[MAX_DIRECTORIES_CHECK];
Why don't you use one of the STL containers so that you can handle any number of folders?
Geennaam82 wrote: int listDirectories( char* directory )
Since directory is not changing, make it const .
int listDirectories( const char *directory )
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hahahaha, good remark, didn't give any real error.
No the problem is that it does read the dir, as it doesn't exit with code 3. But the printf() of the directorynames don't display anything, while the other printf() with strings in them work perfectly. I'm working in VC6, since I got totally freaked while working in VC2005 with all the different string types. So the problem isn't a compile error or anything, the problem runs smoothly, but just doesn't print the foldernames.
|
|
|
|
|
Your strcpy() call looks odd. I think the arguments need to be reversed.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|