|
It sounds like the application is using a relative path instead of an absolute path to the .dat file.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
do you put into the start menu a shortcut to your program, or the executable itself???
TOXCCT >>> GEII power
|
|
|
|
|
Have you set the working directory accordingly? I assume your dat file is in the working directory.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
usually when I want to send an array to a function that is declared like this:
int array[10];
the function header is like this:
void DoArray(int* array, int nCount);
then I still reference the array indexes like it was a regular array. But I've also seen this:
void DoArray(int array[], int nCount)
what's the difference, and is one better than the other?
[insert witty comment here]
bdiamond
|
|
|
|
|
no difference for me
in all cases, int array[]; and int *array; declares a pointer to signed integers...
TOXCCT >>> GEII power
|
|
|
|
|
toxcct wrote:
no difference for me
Same here
<italic>Work hard and a bit of luck is the key to success.
You don`t need to be genius, to be rich.
|
|
|
|
|
It helps if you remember that the following two statements are the same:
array[5];
*(array + 5); See here for more.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
In the end none.
However for the sake of other programers, it is nice to see
void DoArray(int array[],int nCount);
as that tells everyone you intend to use an array. int * can have many meanings other than an array. In example code like this it is obvious, but in the real world it is more like to look like:
returnValueName doSomeStuff(struct names validNames[],int count, OperationCodeList Op)
Now consider the case where names is known to be a linked list, if you had used the *validNames form maintainers (who have to be in and out quickly) will not realize something strange is going on.
Of course I would expect a comment someplace that exmplains doSomeStuff takes an array of linked lists, each list covers one gender. But will anyone recall in latter years that this function is mostly used to cover aliens from phlanix-minor who have 3 distint genders.
Unfortunatly coming up with a real world type example is tough, but I hope you can enjoy the above, and see the point.
|
|
|
|
|
thank you all for your help!!!
[insert witty comment here]
bdiamond
|
|
|
|
|
Henry miller wrote:
int * can have many meanings other than an array.
It can? I only know it to have one: a pointer to an int .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
err... well... if your code is well written yes. If it is less well written it could be a pointer to an array of ints.
In the real world though, I've seen code that takes an int *, which is then type cast to a pointer to a pointer to a struct. It works (I don't want to know how much time was waste debugging it before I got here, this "int" is passed all over in the code), but it is ugly.
In the more complex cases though the argument could be a union of a couple different pointers, or an int. Ideally we would avoid such code, but sometimes there is little choice. Remember the example I came up with, where the pointer was to a linked list of structs. Pointer manipulation often gets really messy in my experience.
|
|
|
|
|
I get this warning everytime I build my project in release mode, with whole program optimization turned on:
ClippedPlane.obj : warning LNK4218: non-native module found; restarting link with /LTCG
This warning appears exactly once for each project, apparently for the most recent module. I.e., before I created the ClippedPlane module, it appeared for the EmitterFactory module, which had been created just before.
Any ideas?
Cheers, blackmesa.
|
|
|
|
|
This warning can happen when you linking an obj which was compiled
/GL and you have omitted the /LTCG switch from
the link line.
There is no spoon.
mail
|
|
|
|
|
Hi dudes,
Iwould like towrite the code to detect badsectors in Hard disk. Can any one help me with the API call I have to use.
Thanks & Regards,
Promise.
If you have in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
For starters, you'll need to study up on ring-0 drivers. To my knowledge, because of HAL, that will be the only way to get access to that level of the hardware.
I'm curious why your application needs to know such information.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
IOCTLs might give you what you need. You need to find the command to send the drive on your own. For Scsi drives, T10.org will help, I'm not sure about ATA drives. In any case, most modern drives automaticly re-map bad sectors. You can find them out, but each manufacture has a different command, and normally it isn't documented.
lookup up the function once you know what to tell the drive.
DeviceIoControl()
on MSDN. For Scsi devices IOCTL_SCSI_PASS_THROUGH_DIRECT, might be useful.
|
|
|
|
|
We all have seen how to make a window transparent, but is it possible to make some of the child windows transparent in and MDIFrame.
If yes, then how ???
|
|
|
|
|
Hi
I have developed one simple application in VC++ using ISAPI project. It is ISAPI Extention...
Do we need any other programm to build to test ISAPI application...?
Is there any one who can guid me how to test that application. Or any link that gives some material on this topic...?
Plz help me...
Amarelia
|
|
|
|
|
Bonjour ,
Je veux savoir s'il y a un moyen d'inclure les DLLs,OCXs à l'executable .
Pour éviter la copie des Dlls , OCXx et leur registy à chaque utilisation sur une nouvelle machine .
thanx
You know What we know so we want to know what you know !!
|
|
|
|
|
Non, les dll et ocx sont chargés dynamiquement lorsque ton programme démarre. Elles ne peuvent être liées statiquement dans ton exécutable.
En quoi cela pose-t-il un problème de les copier avec ton exécutable ??? Tu peux créer un package d'installation qui fait cela pour toi...
Au fait, je pense que tu auras plus de réponse si tu postes tes questions en anglais
|
|
|
|
|
Merci pour votre réponse .
Au fait , je sais bien comment créer un package d'installation en utilisant Install Shield .
Je veux lancer cette application sur une machine ou je n'ai pas le droit d'ecriture , alors je lance l'application directement (à partir d'un CD par exemple),si je mets les Dlls ,Ocxs et j'enregistre les Dlls directement du CD (regsvr32 d:\dlls\help.dll) , puis j'ajoute le chemin (d:\dlls) au PATH system est ce que cela peut marcher !??
Merci encore une fois
You know What we know so we want to know what you know !!
|
|
|
|
|
Alors là, je n'en ai aucune idée...
Faudrait essayer pour voir.
|
|
|
|
|
je pense si vous écrivez en anglais, le peuple comme je qui ne comprend pas Français peut essayer de résoudre votre problème. et au sujet de vous installez le bouclier que vous pouvez essayer l'autre installateur sur le marché allez pour INNO il est le meilleur sur le marché et est également venu librement
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
cedric moonen wrote:
Au fait, je pense que tu auras plus de réponse si tu postes tes questions en anglais
je pense aussi ! lol
TOXCCT >>> GEII power
|
|
|
|
|
Heres the above message in English:
Hello, I want to know if it is possible to include DLLs, OCXs with the executable. To avoid the copy of Dlls, OCXx and them registy with each use on a new machine. thanx
ARSALAN MALIK
|
|
|
|