|
you are correct however when I right click on the file in solution explorer dont see rescan
|
|
|
|
|
I got it right click on the actual file I see rescan -> rescan file however didnt work
|
|
|
|
|
Hmm, might be related to the VS version. I'm on VS2019 16.11.8 and just checked: every change in the .h file (comment and uncomment a symbol the .h file) is immediately reflected in the .cpp file although the .h file has //{{NO_DEPENDENCIES}} at the beginning.
The only case where IntelliSense gets confused is if I revert changes ("Git > Undo Changes"). In this case however "Rescan" will pick-up the changes.
OTOH I'm very sure I used to need "Rescan" for resource ID changes so maybe it's something that has recently changed in IntelliSense.
Mircea
|
|
|
|
|
I am on VS 2019 16.11.8 My windows program is a client to a z/os mainframe machine. I am down to the final component and I wrote a stand alone VS 2019 project because testing the code I building would require an ipl on the z/os machine most everytime
What I am trying to say I am going to carry over these changes to my windows MFC client when I am done including copying over the .rc entries and resource.h file for some reason the that Project solution I dont run into this problem
|
|
|
|
|
Message Closed
modified 15-May-23 19:07pm.
|
|
|
|
|
Member 14968771 wrote: error: unknown type name 'num'
That's pretty clear, I think. But here's the scoop - when pulling arguments out of a va_list , the second argument to va_arg is a type , not a variable name. So in your case this should be
QString s;
for(int i = 0; i < num; ++i)
s = va_arg(args, QString)
Keep Calm and Carry On
|
|
|
|
|
Message Closed
modified 15-May-23 19:07pm.
|
|
|
|
|
This is the mechanism that printf() uses to pass mixed arguments in, so its definitely doable. printf uses its format string to help unpack the argument list, but there are other ways. You could use a simplified format string like "sddi" , showing that the unspecified arguments are a string , two double s and an int . Another option might be to use an indicator e.g
#define ARG_INT 1
#define ARG_LONG 2
#define ARG_DOUBLE 3
#define ARG_CHAR 4
#define ARG_STRING 5
#define ARG_END -1
int var_arg_fn(int arg, ...)
{
va_ist args;
va_start(args, arg);
while(arg != ARG_END) {
switch(arg) {
case ARG_INT :
{
int i = va_arg(args, int);
break;
}
case ARG_DOUBLE :
{
double d = va_arg(args, double);
break;
}
default:
}
arg = va_arg(args, int);
}
}
var_arg_fn(ARG_INT, 1, ARG_DOUBLE, 3.2, ARG_STRING, strvar, ARG_END); I'm sure if you think about it, you can come up with something that suits your needs.
But since you're using C++ now might be the time to venture into the world of variadic fuction templates . Google for that and check out one or more of the tutorials and/or examples. It might be a better fit than trying to wrap things back down to C stdargs .
Update: Here's a video on variadic templates that may help
C++ Weekly - Ep 6 Intro To Variadic Templates - YouTube
Keep Calm and Carry On
modified 9-Jan-22 18:37pm.
|
|
|
|
|
Where is i used in the call to va_arg ?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Its only used as a loop counter. If you prefer we could do
while(num--)
{
s = val_arg(args, QString);
} That, of course alters the value of num, so if you need to know how many args were passed in, or need to traverse the argument list again, you don't want to do that.
Keep Calm and Carry On
|
|
|
|
|
Message Closed
modified 15-May-23 19:07pm.
|
|
|
|
|
Member 14968771 wrote: PS I did post same request on QT forum
Given the complete lack of detail in your "question", you'd have better luck posting it on a "psychic hotline" forum instead.
Even people who are "familiar with QT Bluetooth CODING" can't guess what your secret code is doing, nor what the secret problem is.
If you want someone to help you, you need to start by asking a proper question, with enough details to explain the problem and to show the relevant parts of your code.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
is there how to work on google even knowing any programming language variation?
|
|
|
|
|
Uhh... what?
And what does this have to do with C/C++?
|
|
|
|
|
Not with those types of questions.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
If you're looking for work at Google or another international (and especially US-based) company, you should work on your grasp of the english language first.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
Hi
I have a question regarding the pie method in CDC there are eight parms the first 4 represent the bounding rectangle in which the ellipse or the circle is enclosed the last 4 represent the starting and ending points and of the arc
my question is for the last 4 why is the "Y' vertical parm necessary it would always seem to be from the center of the arc to its edge
I hope my question makes sense
thanks
|
|
|
|
|
"Y", the radius at x = 0, varies with the angle of the arc (as a point on the circumference).
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Tell me if I am right I think I first need to determine the angle so if is 25 % then the angle is 90 4 / 360 then to get the y it’s y = consin(angle) x = sin(angle)
Right ?
|
|
|
|
|
|
Thanks for help one more follow up question
Would this equation not have to be multiplied by the number of pixels per circle degree I mean the formula is the same for big and small circles so you have to taken into account the size of the circle I’m sure I can do it with GetCientrect
Thanks
|
|
|
|
|
The radius determines the size of a circle. If you want to scale, you vary the radius.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
My client etc is a square so either the width or height divided by 2
Ok thanks
|
|
|
|
|
When doing drawing first you do it to memory than BitBlt to the device -> device context can to you save the memory dc to a file ?
thanks
|
|
|
|
|