|
You can write Windows Services with the Standard Edition. However, there is no wizard available for native C++ or C++/CLI. The comments about not being able to write Window Services is directed toward C++/CLI in the standard version of VS.NET since there is a Windows Service wizard in the Professional version.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Ah, thanks for clarifying. So it won't help you create one from scratch, but if you have the code you can build it. Cool.
Thanks again,
DB
|
|
|
|
|
int j;
j=4; //100
printf("\n\nj value:%d",(~j));//100-->(NOT)-->011-->So shouldn't this be 2??
It prints -5??? Why?
----------------------------
286? WOWW!
|
|
|
|
|
(4) is hex 0x00000004
~(4) is hex 0xfffffffb which is a signed integer which is (-5)
Jeron
|
|
|
|
|
_8086 wrote: 011-->So shouldn't this be 2
Actually that's 3
The ~ operator effects ALL the bits of the integer
int j;
j=4;
j=~j;
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Mark Salsbery wrote: Actually that's 3
Thanks
----------------------------
286? WOWW!
|
|
|
|
|
|
Hi
I want to compile source code of a program written under linux.
I want to compile the source under windows xp.
Is there any tool to do the port.? please suggest me any...
regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Hi
How about cygwin?
anyone familiar with it?
Regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Zainu wrote: How about cygwin?
it's been a while since i've used it, but i think that if you want to run the program on XP, cygwin is the way to go. but, if you want to compile the program on XP to run on a Linux machine, the process is very complicated - IIRC, you have to rebuild all the tools (gc, the linker, the libraries, maybe even the kernel) first.
a few years ago, i needed to build an EXE that could run on a specific Linux distribution, and i went down they cygwin path for a few days, trying to get it to work; but it quickly became far too much hassle. i ended up spending a couple hundred $ to buy a cheap PC, installed the Linux distribution on it and built the EXE there. then i moved the EXE to the target computer, and got on with my life.
|
|
|
|
|
What kind of program is it ? Was it planned to be cross-platform ? If no, then as far as I know you can't do that. But it all depends of the program itself. If it is a simple console application that doesn't use any linux API, then it is cross-platfrom. If it is a program that display a GUI for instance using the Linux API, then it won't work.
|
|
|
|
|
Zainu wrote: Is there any tool to do the port.?
Yes[^]
led mike
|
|
|
|
|
AHHH I just HAD to click on the link. When it popped up I spewed root beer on my
monitor.
Thanks man.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
cygwin is great.
I was using to compile a 3d game. For the past two days i was sitting on this.
The only problem is initial setting up of the libraries and headers and then too download the cygwin packages you require.
Regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|
hi iam doing a project with my friends, and its about find the posbile path of the linklist
and one of the function is wrong
i got the struct
struct node
{
int v1;
int v2;
int w;
}first;
struct node[] *findposibility(int index) // is this wrong the way i call the node
{
struct node *curr;
struct node *a[5];
curr = first;
int i = 0;
while(curr->next != NULL)
{
if(index = curr->v1)
{
a[i] = cur;
i++;
}
curr == curr->next;
}
return a;
}
thanks
|
|
|
|
|
Where's the "next" member of node?
There's several problems involving uninitialized variables and your function definition.
What are you trying to do?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
hi sory i forgot to put the next
and one of the function is wrong
i got the struct
struct node
{
int v1;
int v2;
int w;
struct node *next
}first;
struct node[] *findposibility(int index) // is this wrong the way i call the node
{
struct node *curr;
struct node *a[5];
curr = first;
int i = 0;
while(curr->next != NULL)
{
if(index = curr->v1)
{
a[i] = cur;
i++;
}
curr == curr->next;
}
return a;
}
thanks
|
|
|
|
|
One way to get your code to compile is like this (changes in red):
struct node
{
int v1;
int v2;
int w;
struct node *next;
} first;
struct <code>node **</code>findposibility(int index)
{
struct node *curr = <code>&</code>first;
<code>static</code> struct node *a[5];
int i = 0;
while(curr->next != NULL)
{
if(index <code>==</code> curr->v1)
{
a[i] = curr;
i++;
}
curr <code>=</code> curr->next;
}
return a;
}
There's still a couple problems:
1) first is not initialized
2) Is 5 the max number of hits you will ever encounter?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
THANKS ITS HELP ME alot actually first i declare in another function but i want to ask u why i have to put static instead of struct node *a[5]?
|
|
|
|
|
arifliminto86 wrote: i want to ask u why i have to put static instead of struct node *a[5]?
That's the only way to "return a;" safely. If "a" is not static then it is a temporary variable
that only exists (its scope) in this case for the life of the function. If you return it, and
it doesn't exist after returning, then that's quite a problem.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Mark Salsbery wrote: There's still a couple problems:
Sure and the Titanic sort of sank.
led mike
|
|
|
|
|
|
led mike wrote:
Sure and the Titanic sort of sank.
he he he!
|
|
|
|
|
Hi, I'm having a hard time with MultiColumn listbox's. I'm trying to Create a Multi Column ListBox that basically displays continually changing data. So I'd like title buttons for each column, and then in each column the data that appears needs to be updated continuously. How do i do this?
By the way. I'm using VC++ 6.0. I know how to make the ListBox, I just don't know how to create titles for each column. Or atleast how to add/edit data to each column would be helpful.
-- modified at 10:00 Friday 30th March, 2007
------------------------
Impossible is Nothing
|
|
|
|
|
Use a ListView control [^] (or, if you plan to use MFC, the ListCtrl class [^])
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|