|
By default, user id of an access database is "Admin", hence to open a password protected database, use:
"UID=Admin; PWD=your-password"
Arsalan Malik
|
|
|
|
|
hmmm if i try like this:
CString strConnection = _T("Driver={Microsoft Access Driver (*.mdb)} Dbq=c:\\exchange-b\\ApplicationDatabase.mdb; Uid=Admin; Pwd=myPass;");
m_DB.SetConnectionString(strConnection);
the programm still cant open (m_DB.Open()) the database. are you sure there is no difference between database base password and user password?
if i set a database password and a user password and then i try to open the database from the win explorer, ms access asks me for both passwords ...
so i think i need a connection string which contains the databasepassword
|
|
|
|
|
You'll have to include the database password like so: "Jet OLEDB:Database Password=MyDbPassword;"
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
thanks! that is what i was looking for
|
|
|
|
|
Hi,
I'd like to copy the selected text of any other application
with a system-wide-keyboard-shortcut automaticly to my application.
Should be working like in Babylon Translator.
Maybe someone can guide me to good starting point, or better has
some code that might help me.
Thank you
Mario
|
|
|
|
|
CTRL-C CTRL-V
Look at the WinAPI functions like SetClipboardData and OpenClipboard.
pma wrote:
I'd like to copy the selected text of any other application
The 'selected text' have to be in the clipboard, the concept 'selected text' is a feature in certain components, and not something inherent in a window or an application.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
well thats clear , I like to copy the text, open my application and paste
this text automaticly. And also the other way round:
- press a hotkey
- my application copy's the text into clipboard
- go-back to the window where we came from
- paste the text
The problem is not to copy/paste to the clipboard. The problem is how to
hook the hotkey with my application, then go back to where the user came
from and copy the text into the clipboard. After that my program needs the
focus again and has to paste the clipboard content into my application.
|
|
|
|
|
pma wrote:
then go back to where the user came
from and copy the text into the clipboard.
There is no way to do that explicitly, read: nicely. A SWAG would be to somehow trigger a CTRL-C in the window.
Hmmm...
Using Win32 API you can get the active window, then you could send a keypressed message containing CTRL-C, and, hopefully, it would have triggered the app to copy something to the clipboard.
Not Quick, but definately Dirty, and one out of two ain't bad
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
its bad, and its something I've already tried, its working with Notepad and
some other applications, but not with Excel, lets sys generaly
Maybe some others have already solved such a thing in the past and can help us out here.
Thank you anyway
|
|
|
|
|
Hello,
I would like to add to my MFC dialog some kind of a ListCtrl, but with two columns. The background is that I have some attributes with names and values and I would like to display these dynamically in this list with the uneditable name of each attribute in the first column and the editable value in the second column.
Any ideas for that?
Thanks
Jens
|
|
|
|
|
jensall wrote:
...some kind of a ListCtrl, but with two columns.
m_listctrl.InsertColumn(0, ...);
m_listctrl.InsertColumn(1, ...);
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
In my application I have setup a memory mapped area.
I have a structure and a pointer to the area.
Are they any way you can examine the memory area using this pointer (Hex dump), rather than using the debugger to examine the data in the structure (bytes, int doubles etc).
Just want to see the memory as its stored without it being mapped to my variables/types.
|
|
|
|
|
sweep123 wrote:
Just want to see the memory as its stored without it being mapped to my variables/types
You can use the Memory button on the Debug Toolbar.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
I am using Visual Studio .Net (version 7.0).
I did manage to get up a display via Debug->Windows->Memory, but when I entered the location (0x01650000) it took it as decimal and displayed hex 0x00192D50.
I converted (0x01650000) to decimal and it reverted back to Hex!!?? (0x00192D50)
Am I on the right feature?
Help
|
|
|
|
|
I can't help with VS 7, but I can tell you this works fine on VC6 as I use it a lot. Sounds like a bug to me. Try searching the VS7 info at MS.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
libcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
.\Win32\Debug/G4W.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I've made all settings in debug mode nad i don't have any work with release and ATL why do i get such error,when i m not working for release.
|
|
|
|
|
Anonymous wrote:
libcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Lots of possible causes.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi,
I have a program which creates a named pipe in one thread and then launches another to call ConnectNamedPipe.
Now at some point in the initial thread it will be required to shutdown, so I have tried calling DisconnectNamedPipe followed by CloseHandle but this does not seem to free up the thread that is listening on ConnectNamedPipe and it remains blocking.
Anybody know of a solution to this
|
|
|
|
|
Hello !
I was working on my project and I did something work (don't know what exactly ...). Visual C++ threw an exception and the program was exited. Now, when I load my project again, I have always this error message: "Cannot access the ClassView information file. ClassView information will not be available."
How can I solve the problem ???
Thanks
|
|
|
|
|
This is a common problem in VS6. Quit VS and then delete the byproduct files (*.plg, *.clw, *.ncb etc.) Restart VS then you should be fine. It will asked you to re-generate the classwizard database, but this only takes a few seconds.
[edit] ..also, make sure that all processes of VS are terminated. VS6 did have an irritating habit of seeminly crashing, but still showed up in the process list.[/edit]
I Dream of Absolute Zero
|
|
|
|
|
Thanks for your response !
In fact I tried to rename the *.plg file and it said that the file was in use... So I took a look at the task manager (no Visual C++ was open) and I saw that the MSDEV process was still running... So I killed it and now that works fine (so, no need to delete the files ).
Thanks
|
|
|
|
|
cedric moonen wrote:
d I saw that the MSDEV process was still running...
Yes. I modified my response when I thought that might also be an issue as well.
I Dream of Absolute Zero
|
|
|
|
|
cedric moonen wrote:
...no Visual C++ was open) and I saw that the MSDEV process was still running...
They are one in the same.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I've been asked to look at the possibility of implementing face recogition from a web cam. I work for a small company so can't afford any extensions that you have to pay for. Does anyone know of any freeware face recognition libraries? Are there any special key words I could google for?
Thanks
I feel like I'm diagonally parked in a parallel universe
Jerry Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
Hi,
I had seen running projects for that one, but it is not really realible and robust.
What the programmer did :
1. Capture the image using the webcam
2. Search from the databank by comapring pixel by pixel. The matching percentage will be compared based on the tolerance defined level say +/- 90%
Of course the lightings and position of the head will sureley affect, even hairdo.
|
|
|
|