|
Hello Everybody,
I have a problem and maybe one of you can hand me a beautifull solution.
I spend many hours finding out how do to that nice plug-in effect in IE (Like acrobat does), and now I want it too!
I found out I can start a MFC application, make it a full server (so I can run it stand-alone AND in an Active container(e.g. IE)), BUT i'm a totally newbie concerning MFC and I'm searching for a way to design Forms design-time just like I can do in a form application.
uhmm.... help?
Paul
|
|
|
|
|
Can some1 plz tell me how to get table name and field name from SQL in MFC VC++ using ODBC
|
|
|
|
|
It's been several years, but the last time I used Microsoft SQL Server, I spent a few hours wading through all of the stored procedures. Not only were they easy to read, they were commented. If you have access to the machine, I would suggest you do the same. I learned so much. Retrieving table names, user properties, machine statistics, etc. is just the tip of the iceberg.
Once you figure out what stored procedure) you want to use, it's very simple to call it from the client side.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
You can query the table and column names from the system tables sysobjects and syscolumns.
e.g.
<br />
select sysobjects.name as TableName, syscolumns.name as ColumnName from sysobjects<br />
inner join syscolumns on syscolumns.id=sysobjects.id<br />
where sysobjects.type='U'<br />
I Dream of Absolute Zero
|
|
|
|
|
I need to make a program to read macro code from microsoft office file,such as to read macro code from file which extention name is .doc,how can I implement this.
hiall
|
|
|
|
|
hi I am now first time visite your site.
I'd like know how can i read from doc files and how can i modfiy on it.
|
|
|
|
|
oh... if u will have an issue and finnally recognize doc file format let me know too)
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
The first thing that comes to mind is Automation. Check out MSDN article Q178749. It deals with Excel, but with only a few changes, Word can be used too. However, I do not know if macros can be read using the available interfaces.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Any body have a clue
how can i show windows standard "Open With Dialog Box"
which is shown when we double click on a file with an unknown extension.
|
|
|
|
|
|
In C++, there is no overloading across scopes ,
Please see following example
#include<iostream>
using namespace std;
class B {
public:
int f(int i) { cout << "f(int): "; return i+1; }
// ...
};
class D : public B {
public:
double f(double d) { cout << "f(double): "; return d+1.3; }
// ...
};
int main()
{
D* pd = new D;
cout << pd->f(2) << '\n';
cout << pd->f(2.3) << '\n';
}
which will produce:
f(double): 3.3
f(double): 3.6
rather than the
f(int): 3
f(double): 3.6
Why it is so?
|
|
|
|
|
to gain required result simply declare functions with the different argument types in one class...
perhaps u mixed up overloading with overriding
class D : public B {
public:
double f(double d) {
cout << "f(double): ";
return d+1.3;
}
int f(int i) {
cout << "f(int): ";
return i+1;
}
// ...
};
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
No that is not What I Expect...Please read the question carefully.
|
|
|
|
|
C++ allows specification of more than one function of the same name in the same scope. These are called “overloaded functions”.
Cheers,
Vishal
|
|
|
|
|
You may expect the f(int) method to be called, but in resolving the call I suspect the compiler 'sees' that by casting the int to a double, it can resolve to a method within the class. Have you tried either of these?
cout << pd->f((int)2) << '\n';
cout <<((B*)(pd))->f(2) << '\n';
Chris Meech
I am Canadian. [heard in a local bar]
Gently arching his fishing rod back he moves the tip forward in a gentle arch releasing the line.... kersplunk [Doug Goulden]
Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]
|
|
|
|
|
Hi All,
My question is not how to overcome the above problem. I need to know why C++ dosen't allow the overloading across the scopes?
|
|
|
|
|
vikrams wrote:
overloading across the scopes?
I need to understand what you mean by the above.
Chris Meech
I am Canadian. [heard in a local bar]
Gently arching his fishing rod back he moves the tip forward in a gentle arch releasing the line.... kersplunk [Doug Goulden]
Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]
|
|
|
|
|
Hi,
I have a project with only limited harddisk space. I have bought VS.net 2003 package, but I only want to install VC++ (without .net framework, i.e. I don't want to use VC++.net), how to do this? Thanks!
Thomas
|
|
|
|
|
how to using shockwave flash component in vc++
|
|
|
|
|
if u have installed flash in your machine u can use the ActiveX control....
i have tried it in VB...:->
just insert that activex control in ur VC formview...
all the best..
- thanks and regards,
Basavaraj P.Umadi
|
|
|
|
|
i want use Windows media sdk....but any problem,,,, i want to use get_duration function..
i need information about current play time and total time and bitrate ,,,
but i dont know use get_duration function .....how i can use that? for example explain...
i m this sdk beginning,,,,, i want that use CWindowMedia:: <this> ,,,,,
<this>... is get_duration must in.....
|
|
|
|
|
I am creating a bunch of dockable dialog bars that have several Edit controls in them to display data. I am doing this within a SDI application. Basicaly I am trying to create lots of little "tool bars" that I can organise on the screen as I want and hide/show at will. Think the tool bars in an application like flashMX or photoshop and thats what Im aiming for, just less complicated using standard controls arranged in the dialog editor.
Given that the SDI wizard (in vis6C++) doesnt create a data map so I can assign a variable and use UpdateData to display variables in these edit boxes that are within the dialog bars, how do I go about setting the data in them. I know I can use SetText and GetText but theyre only good for text, I want to display DOUBLEs and other numerical data in them.
I guess what I am asking is, what is the standard way to control the content of Edit controls that are found in DialogBars?
Alternatively if someone else has a better idea as to how to create an extensible interface that is based on controls I would love to hear it. If you know how to make a modeless dialog box dockable, I could use them for "Pseudo dialog bars" and that would also solve my problems as they have message and data maps setup by the IDE.
Thanks again,
Will.
|
|
|
|
|
Imho, the "right" approach to this problem is to dissociate the GUI from the data.
I recommend sending a custom message to each of the dialog bars which causes them to query a central source of data (a pointer to which can be obtained via a public method of your app) and update themselves as needed. This allows the nature of the displayed information to be known only to the dialog bar(s) that display the information.
Your dialog bar(s) would do something like this:
CFooDialogBar::OnUpdateMyself()
{
CMyData* pData = ((CMyApp *) AfxGetApp())->getData();
float fValue_1 = pData->getValue_1();
int nValue_2 = pData->getValue_2();
...
}
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
But the thing is that Dialogbars dont handle their own messages. Events are passed to the parent window, there is no class for them, theyre built on top of the main frame class i.e.
Class CMainFrame : public CFrameWnd
which receives all the events for every dialogbar.
The issue Im having is that I dont know how to address the edit boxes. Im a novice MFC programmer and all Ive ever used to populate the boxes is UpdateData.
Does someone have a code snippet that shows me how to populate the box with something (other than an int or string i.e a float)?
Thanks,
Will.
|
|
|
|
|
Who has some clues on creating WinLogon Notification Package using VS.NET 2003. Be more specific,
- what project type should I create.
- any special settings?
|
|
|
|