|
Re-read what you just posted. You're prepending App.Path to the hardcoded path of "C:\mywork\dbase.mdb" and "C:\newfiles". What's the value of App.Path?? What would the complete paths look like if you prepended that value to both of the paths you specified?? Does those results look like valid file/folder paths to you??
|
|
|
|
|
Hello Dave, thanks for your reply. Please can you help me out to solve it, because I really need it.
|
|
|
|
|
I've told you exactly what to look at so you can solve it yourself. This is VERY easy to solve, if you have any debugging knowledge at all.
Click on the FileCopy line, set a breakpoint on it (under the Debug menu) and run your code. When it gets to this line, the code will stop. You can then use the Visual Studio debugger to look at the values of variables.
I can't tell you exactly what the line should read because only YOU know exactly what you want this code to do.
|
|
|
|
|
From your post it would seem that leaving off the App.Path and just using the actual file locations would work for you. i.e, FileCopy c:\mywork\dbase.mdb, c:\newfiles. That is, if the mywork directory is under C:\ and it is truly not under your apps working directory. Typically the debugger will let you know what is failing so you should look at that as you program when things do not work. You may have to show more actual code here to have someone help you.
vbmike
|
|
|
|
|
how to send sms from vb.net2010 to mobile phone plz send me help
|
|
|
|
|
|
To send an SMS from a computer you will need to subscribe to and pay for a service to send SMS texts.
The other option is to buy a cheap Android mobile phone and write something to connect to the device and send texts via the phone itself.
This second option would mean that you would need to look into programming with an Android device and write some sort of service to connect to the device via a wireless connection.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Countered the idiot down vote!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks!
The downvote didn't even show up as a vote.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
First of all this is my first thread, I'm new here so yeah, hello.
I would like to ask am i able to detect whether my webcam is being used by any other application.
The method I have in my mind is to put a timer and every time it ticked, It will check whether the webcam is running. Is this possible?
Please anyone? I have tried few but not able to.
Thank you.
|
|
|
|
|
Saiful Bahari wrote: I would like to ask am i able to detect whether my webcam is being used by any other application. Only if the device-driver supports it. Then it'd be a question whether there's an API for C#.
Saiful Bahari wrote: The method I have in my mind is to put a timer and every time it ticked, It will check whether the webcam is running. Is this possible? AFAIK, only by "trying" to use the webcam which would create problems of its own (like the webcam being in use by your app when the user tries to Skype with it)
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I understand what you meant, but I didn't manage to do it. Can you help me with a little guide? I'm using Touchless SDK to connect to the webcam. I've tried my luck on their discussion room but it looks like a dead town there. No one ever reply any more.
|
|
|
|
|
Saiful Bahari wrote: I understand what you meant, but I didn't manage to do it. ..because most drivers will not support it.
Saiful Bahari wrote: Can you help me with a little guide? Find an example here that tries to use the webcam. If it throws an exception, the webcam is in use.
Check it often enough, and the cam will always be in use (by you, making it unavailable for other apps).
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hello,
I am desperately trying to implement a VB .NET dll in a vb6 program without registration. I am completely new at this and no one in my company's IT department has needed anything like this so far, so there is no one to ask. I can get it to work on my PC without problems, but I can't get it to work on other PCs
So what I tried is this:
- Create a simple dll-class in VB .NET using Visual Studio 2010 (basically a hello world class)
- Make it com visible and register for interop services
- Compile (does compile for release or debug make any difference?)
- import tlb file in VB6
- compile VB6 project
Now I copied the dll and tbl files in the directory of the VB6 exe and tried creating a manifest.
I tried doing it by hand
using MMM
using UMMM
using mt32.exe
using Side by Side Manifest Maker
MMM: Creates an almost empty manifest. No reference to any dll found. Unsurprisingly this doesn't work on other PCs: "ActiveX component can't create object"
MT32.exe: Tryied creating a manifest out of the tlb and dll but I get "Automation error. Error in the dll"
UMMM: I was unsure how to configure the .ini file. What I have is this:
Identity C:\Program Files\Microsoft Visual Studio\VB98\TestDLL_UMMM\TestDLL.exe test "Test1.0"
File TestDLL.dll
-> "not a valid win32 application"
Side by Side Manifest Maker: Creates a manifest if I just add the tbl, but then I just get the "ActiveX component can't create object error". If I add the dll, it can't create a manifest because tlb.exe produces an error (translated from German): "a dependency couldn't be found. The assembly is being created by a runtime that is newer than the current runtime, and can't be loaded"
by hand: I can't actually find that version of the project. Suffice to say, I couldn't get it to work and I had no clue if I was even doing anything right
I am now completely desperate and I have tried everything I could think of. I tried reading up on assemblies, manifests and how they work in VB6 and .NET, but nothing helped me in figuring out what I am doing wrong. Please help!
|
|
|
|
|
Start here[^]. MonganT wrote: I am now completely desperate Don't; in the worst-case scenario it'd mean that one would have to register the tlb. The world will not end.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Unfortunately that doesn't help. I work for an international company in manufacturing. The VB6 software is installed on many PCs that serve as interfaces for the workers. They have just about zero permissions and cannot register dlls. Moreover, it is against company guidelines to allow them this kind of access
In short, it has to be registration free
|
|
|
|
|
MonganT wrote: it is against company guidelines to allow them this kind of access Still doesn't mean you should be desparate; if it cannot be done because the customer does not want it, then that's the decision of the customer.
I'm out, sorry. Good luck.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Please I am doing a project that reads data from an excel sheet to a datagrid and the saves the data from the datagrid to an access database that will be created at runtime. The import to the datagrid has been done and even with that, the excel file needs to be opened literally before the datagrid can read from it. But as for the saving to the access database created at runtime, I have not been able to make any thing for it. Please help me. My project supervisor needs a working prototype by monday or by next week. Thank you all for your help.
You can PM me or email me for the source code.. Thank you once again
|
|
|
|
|
I'm afraid to have the wrong idea of how these forums work. When you find run up against a specific problem in your coding we will attempt to help YOU fix the issue. It is extremely unlikely someone is interested in doing your project work for you.
Debug you code to identify where and what the error is and post that information and we may be able to help.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Am sorry I didnt know how the forum works. I am truely sorry.. But the thing is I sent this not from my own machine so I couldnt retrieve the source code... And thanks for letting me know my ignorance levels.. I wouldnt do that next time ![Wink | ;)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_wink.gif)
|
|
|
|
|
That's alright we all started out at some time, what you want to avoid is broad based questions, get into the detail and when you run into a problem do some research and if you still can't go forward then ask. I find 98% of my problems have already been solved by someone else.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
pupinsre wrote: But as for the saving to the access database created at runtime, I have not been able to make any thing for it. The easiest way is having an empty database somewhere, and to make a new copy of that when you need to "create" one. File.Copy is easy, which would solve this problem. Bonuspoints if you tuck it in a resource-file and embed that in the executable.
pupinsre wrote: My project supervisor needs a working prototype by monday or by next week. How are you reading the Excel-file? Using an IConnection , with commands and stuff? You can do the same with the newly copied Access-database - put new records in one of the tables using an connection and some commands.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Thank you so much.. will let you know whatever that happpens.
|
|
|
|
|
Did you get it to work?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|