|
Use _wfopen .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi All,
I am using access automation. Please Guide How can I Get number of tables & names in a database using access automation?
I don't want to use any database connectivity since i don't intend to do anything with data or data fields. I just want to figure out number of tables & table names in an access database.is it possible using access automation.How?
Ankush Mehta
|
|
|
|
|
Hi all,
Please Guide me if anyone knows answer to this question!!!
Regards,
Ankush Mehta
erankushmehta
View Public Profile
Find all posts by erankushmehta
Add erankushmehta to Your Buddy List
Ankush Mehta
|
|
|
|
|
I am working on an applicaiton that needs to support different databases. I created the reports using SQL Server as the database, and for others i am setting the databse information and table locations from the code.
Now in some of the reports i have got subreports, having parameters mapping to the fields in the main report. Since the parameter is defined with an '@Parameter' in sql server and ad 'Parameter (no @)' in oracle for stored procedures I had to change the name of the parameters from code too. This is working ok.
Now the problem is that I had to modify the links accroding to the new parameter field names. but the problem is that i am unable to retrieve the mapping field names of the subreport. There is a call available as
ISubreportLinkPtr->MainReportField->GetName
ISubreportLinkPtr->SubreportField->GetName
The main report one return the correct name of the field in the main report but the subreport one always returns the first database field instead of the actual mapping field.
Anyone got any idea please reply quick.
Thanx.
Rahim Rattani
Software Engineer,
Matrix Systems (Pvt) Ltd.,
Karachi - Pakistan
|
|
|
|
|
Hello, after looking at this thread[^], I tried also to deploy my application on a remote computer (without VC2005 installed). The app was created with VC2005 Express edition. So, I read the several articles on app deployement on Microsoft website, and I could not believe it !! It seems impossible to use an app developped with the express edition on another computer !
None of the methods described there works because the files don't exists with the express edition:
1) Deploy using a Setup and Deployment Project: not possible because this type of project doesn't exist in the Express edition:
From the File menu, click New Project, open the Other Project Types node and select Setup and Deployment, then click Setup Project.
Supply a name and click OK.
2) Deploy using XCopy (method1: Deploying Visual C++ library DLLs as shared assemblies): the required files don't exist (and even the vcredist_x86 folder is not present)
Copy vcredist_x86.exe from %PROGDIR%\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\vcredist_x86\vcredist_x86.exe
to the target computer
3) Deploy using XCopy (method2: Deploying Visual C++ library DLLs as private assemblies): the required files don't exist neither (neither the redist folder)
On the development computer, from %PROGDIR%\Microsoft Visual Studio 8\VC\Redist\x86, copy Microsoft.VC80.CRT and
Microsoft.VC80.CRT to \bin and to \bin\MyLibrary.
SO WHAT ????
With the Express edition, all you can do is is develop your little application on your computer and that's it !! Not possible to redistribute it . And in November 2006 they want to make people pay for this crap ???
I can't believe it
Or maybe I could be wrong ?
|
|
|
|
|
Hello,
I have a MFC aplication with a dialog. In the same file where that dialog's methods are defined (dialog.cpp), i have defined some functions that don't belong to the dialog nor any other class. Some of those funcions need to access to the control's (some progress bar and a label) methods of that dialog.
Is that possible?. I've tried to define a global pointer to the dialog in the dialog.cpp file, and asign it to the dialog in the constructor method (pointer=this). Then i should access to the controls from the functions by using: pointer->GetDlgItem(ID)->SetWhatever(); , but i can't.
Could you help me?
Thanks in advance.
|
|
|
|
|
Accessing controls from outside a dialog is in general a bad design practice. Also, try to avoid global variables and global functions (it's lead in general to a lot of troubles).
Your problem could probably solved in another way than using global funcions. Why do you want to use such behavior in a global function ? What do you need to do exactly ? If you describe in details what you are trying to achieve, we could probably help you by pointing you better ways of doing it...
|
|
|
|
|
Thank you. I know that using global functions is not a good design practice, but due to external reasons i have to use at least one, and that one needs to update some controls very frequently (25 times/sec).
The process is this:
launch aplication
|__launch dialog
|__launch DirectShow graph
|__uses filter that takes a function (not method) as parameter
|____function accesses dialog controls 25 times per second to update some progress bars and labels
Thanks again.
|
|
|
|
|
ProbeVision wrote: Some of those funcions need to access to the control's (some progress bar and a label) methods of that dialog. Is that possible?
Perhaps, but why would you want to? It sounds like a recipe for disaster. Why not just send the dialog a standard Windows message and let the dialog itself communicate with its controls? If you absolutely had to communicate with the controls, use SendDlgItemMessage() .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Thank you, but how could i send a Windows message to a dialog?
|
|
|
|
|
ProbeVision wrote: how could i send a Windows message to a dialog?
The same way you would send a message to any other window...by using SendMessage() .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Thank you, the problem is solved. Your help was very useful.
|
|
|
|
|
Hello
I am using recursive function to populate directories and sub directories in a tree control.How can i make a directroy, sub directory of some directory. Please help me.
Waiting for reply...
We Believe in Excellence
|
|
|
|
|
Aqueel wrote: How can i make a directroy, sub directory of some directory.
By using CreateDirectory() or SHCreateDirectoryEx() .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi
How to differentiate MFC functions and SDK and what are the differences between these two. Please help me in this regard.
Thanks
|
|
|
|
|
Microsoft Platform SDK is freely available from Microsoft. It contains all header files, libraries and tools required to develop Windows applications. It contains some samples and documentation also. But it does not have any good object oriented window library like MFC. It is really difficult and challenging to produce high functionality applications with a great looking GUI and all.
But on the other hand, MFC is set of classes (Not free), that has wrappers for windows API, written in C++. There might be other packages those are similar (Think class library by symantec, and Object windows library by Borland, etc...) but MFC is the most celebrated package when it comes to windows application development with GUI.
Regards,
Rajesh R. Subramanian.
Akruti Software,
Bombay, India.
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
-- modified at 2:33 Wednesday 30th November, 2005
|
|
|
|
|
Rajesh R. Subramanian wrote: Microsoft Platform SDK is freely available from Microsoft
Rajesh R. Subramanian wrote: But on the other hand, MFC is set of classes (Not free),
I am totally confused by your above two statement! nothing is free buddy!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: I am totally confused by your above two statement! nothing is free buddy!
You can freely download the Platform SDK from Microsoft, whereas you cannot do so with MFC. Is that what you are referring to?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: You can freely download the Platform SDK from Microsoft, whereas you cannot do so with MFC
Little OT question Sir, Is there is Some diffrence between Windows SDK and Plateform SDK?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: Is there is Some diffrence between Windows SDK and Plateform SDK?
The Windows SDK is a subset of the Platform SDK.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
if the "winmain()" is visible, its an SDK program, if not it could be MFC.
SDK is programmed using C for calling APIs directly (though u can create your own classes in C++)
MFC is object oriented fully C++ based, wraps the raw API and gives you a faster way to create applications.
first learn SDK, then come to MFC. never land on MFC straight away. the mistake which i did Then you'd be asking "what the heck is windproc and whatz a winmain??!"
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1"> --[V]--
|
|
|
|
|
if the program have any dependancy to MFCxxx.dll, then the program uses MFC somewhere
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
if the project is done in MFC , it'll have MFC functions . if it is done in SDK , it will have SDK functions.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1"> --[V]--
|
|
|
|
|
snprani wrote: How to differentiate MFC functions and SDK and what are the differences between these two. Please help me in this regard.
Buddy, MFC is just a Object oriented Wrapper Over Windows SDK api.. which simplify working with apis easily.. thats a only major diffrence between them
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Read about MFC here.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|