|
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
|
|
|
|
|
Thanx a lot for traducting my message
You know What we know so we want to know what you know !!
|
|
|
|
|
бонжу, пацани
не, ну нормально, та?
от я все зрозумів.
не забудь мені за реплай подякувати.
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
|
K Arsen wrote:
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.
Yes, you can include other files within your executable. Search MSDN for RT_RCDATA. Once you have the files in your project's resource table, see here for a brief explanation on how to extract them.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Thanks a lot for your awnser .
I 'll explain one more what i need exactlly.
I need to launch an application in a system within i dont have a permission to write,and this application calls some DLLs and OCXs that i must register using (REGSVR32) .
How could i deal with this ??
thanks in advance .
You know What we know so we want to know what you know !!
|
|
|
|
|
K Arsen wrote:
...within i dont have a permission to write...
Are you sure? Temporary files are created/deleted continuously as the user currently logged on. Even the "guest" account would have a "temp" folder in which to store files. Yeah, even those folders can be made read-only, but I would then question how Windows would function if it had no place to store temporary files.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Des isch doch voll oifach!!
P.
|
|
|
|
|
Hi
I have developed one simple application in VC++ using ISAPI project.
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
|
|
|
|
|
There are two types of ISAPI applications. Extensions and filters. Which one did you develop ? some links can be foundhere [^]
There is no spoon.
mail
|
|
|
|
|
I realize that I should work with ODBC for writing a data base program that dont use Access files but I want to know that how can I do this work?
But I want a methode like "Learning VC++ in 21 Days" to writing this program .
Please help me that I can use and write this program.
Thank you alot
|
|
|
|