|
sachanratnesh wrote: can we call such function from another application Short answer: No. Longer answer: You can use the CreateProcess [^] function, but that seems not to be what you want. Perhaps you could explain in better detail exactly what you are trying to do.
sachanratnesh wrote: ?????????? A single question mark is sufficient.
Veni, vidi, abiit domum
|
|
|
|
|
I am using VC++/C++ in my product, in which i want to add one functionality (Picture Viewer).
Which I got from NET, shown in the following link.
http://www.codeproject.com/Articles/5065/Thumbnails-viewer-and-image-processing-using-GDI-a
Now I want to add this functionality in my product (simply when user clicks the button).
|
|
|
|
|
Then you need to take the source code from the article and modify it to your needs.
Veni, vidi, abiit domum
|
|
|
|
|
I am with Richard - He forgot to mention that you could also make it a static library (*.lib).
In other news:
A Java backend, Windows Service or RESTful API would probably do the job, too - You get the idea.
|
|
|
|
|
thanks for your reply..
if i dont want to use the DLL or COM as well as the EXE, is there is any other way to execute the application???
as we know that application will open by calling the "CreateWindow" and "ShowWindow" function.
can we call such function from another application??????????
|
|
|
|
|
|
Marco Bertschi wrote: He forgot to mention that you could also make it a static library No, I deliberately did not mention it since very few people seem to understand that such a thing exists, even though in practically every case, it would be more efficient than a DLL.
Veni, vidi, abiit domum
|
|
|
|
|
Alright, I didn't want to accuse you of anything wrong - I think it is easier to use, and, in most cases it is faster.
|
|
|
|
|
Marco Bertschi wrote: I didn't want to accuse you of anything wrong You didn't; I was just explaining why I only suggested a DLL - but I may also suggest .LIB in future.
Veni, vidi, abiit domum
|
|
|
|
|
+1
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
pkfox wrote: +1 Is that down vote or just a minor up?
Veni, vidi, abiit domum
|
|
|
|
|
Good morning, I don't get the option of upvoting on my tablet so its my way of saying "I agree with you"
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Veni, vidi, abiit domum
|
|
|
|
|
I have an MFC C++ desktop application (unmanaged code)that still uses DBGrid. What control would be a good replacement. I am displaying record sets in the control, fixing the number of rows in the control and range checking each cell value when leaving the cells. Vertical scrolling may be necessary.
Thanks for your input
Clayton
|
|
|
|
|
Is there something specific that DBGrid (I'm not familiar with it) doesn't give you, or is it looking dated, or ...?
|
|
|
|
|
DBGrid is dated. I have a number of annoyances with it, I have listed some of my issues below.
Documentation is scarce.
It is not well supported in VS2012. One can crash VS2012 by editing through the Property Pages dialog (try setting the headfont to bold).
Trying to provide error checking on a cell basis when leaving a cell seems dependent on what method you chose to leave the cell(Tab key versus arrow key).
It is slow to fill from a database.
The necessity to change rows before an update is done to the data.
Clayton
|
|
|
|
|
|
Hi,
I'm reading this old article about window regions from file: CreateRegionFromFile[^]
Sice this article is very old, I'd like to know if there is a better solution for this, and also if there is a quick way to do this using Codeblocks instead of VC++ dependant code.
Thanks for the help,
Luca
|
|
|
|
|
|
Thank you very much, using this tutorial I was able to build regions on codeblocks!
|
|
|
|
|
Don't think there's a "quick way" of doing this... if using codeblocks, you have to work directly with the WinAPI, so it's not exactly trivial. I don't believe this is a widely supported action so frameworks don't really include an easy way to do this.
|
|
|
|
|
Thanks to both for the reply.
|
|
|
|
|
Dear All,
i had write a code in C, but when execute, it an error.
May i know how to combine a correct structure ? kindly advise, thank you
Output results
**Enter integers: 23 12 34 56 78 12
Traversing the list : 23->12->34->56>78->12
Minimum value : 12
Reversing the list: 12->78->56->34->12->23**
#include <stdio.h>
#include <stdlib.h>
struct node
{
int data;
struct node *next;
}*head;
void insert_data(int value)
{
struct node *var,*temp;
temp=head;
var=(struct node *)malloc(sizeof(struct node));
var->data=value;
if(head==NULL)
{
head=var;
head->next=NULL;
}
else
{
while(temp->next!=NULL)
{
temp=temp->next;
}
var->next=NULL;
temp->next=var;
}
}
void reverse_list()
{
struct node *temp,*temp1,*var;
temp=head;
var=NULL;
while(temp!=NULL)
{
temp1=var;
var=temp;
temp=temp->next;
var->next=temp1;
}
head=var;
}
void display()
{
struct node *var;
var=head;
printf("\nlist of elments are \n");
while(var!=NULL)
{
printf(" %d ->",var->data);
var=var->next;
}
}
int main()
{
int i,value;
char ch='y';
head=NULL;
printf("\nEnter Integers: ");
scanf("%d",&value);
insert_data(value);
display();
}
getch();
}
|
|
|
|
|
caulsonchua wrote: i had write a code in C, but when execute, it an error. You need to show what the error is and where it occurs.
Veni, vidi, abiit domum
|
|
|
|
|
int main()
{
int i,value;
char ch='y';
head=NULL;
printf("\nEnter Integers: ");
scanf("%d",&value);
insert_data(value);
display();
}getch();
}
You have a spurious an extra closing brace ('}') in your code. Remove it in order to correctly compile.
As it stands, you main function retrives just one integer from the user.
Change from
Quote: scanf("%d",&value);
insert_data(value); to
while (scanf("%d", &value))
{
insert_data(value);
}
This allows the user to enter many integers (one at time).
Inserting a not-valid-number (e.g. "foo" ) ends the insertion in the list.
Also, I suppose your reverse_list function is plainly wrong.
Veni, vidi, vici.
modified 13-Nov-13 11:14am.
|
|
|
|