Cool, that's absolutely right! Thank you for your explanations, and other guys also.
joypain
Posts
-
macro function compiles error,can anybody explain why?3x! -
macro function compiles error,can anybody explain why?3x!Hi,guys,I did a test on a macro function code, and compiled it in VC6.0, but the compiler reported an error: "D:\vc project\testmacro.c(7) : error C2105: '--' needs l-value" Would someone explain why line 7 reports an error ,but line 6 doesnt't? 3x! :) Source code is as follows:
#include "stdio.h"
#define ABSOLUTE(a) (((a) > 0) ? (a) : (-a)) /* Get absolute value */
void main()
{
int a = -1;
int c = ABSOLUTE(1); //line 6
int b = ABSOLUTE(-1); //line 7
} -
How can I implement the executing when turning on the computer during the deployment"[TARGETDIR]" works!:) I've been searching on the internet and msdn for a few days to solve the problem.Thank you for your guide! joypain
-
How can I implement the executing when turning on the computer during the deploymentI add a new item in HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\ CurrentVersion\Run,and then I add a key, and set the key value to the path of the application,can it work? by the way how can I get the path of the application in the registry editor and write it to the keyvale? joypain
-
How can I implement the executing when turning on the computer during the deploymentthere seems to be some code to operate the registrykey(add a key in "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"),but how can I use these codes or where can I use them in the deployment project. and in the deployment project,there is also registry management in the deployment,can I set the attributes to implement the executing of the application when turning on the computer. joypain