|
hi
plz tell me how can i create a copy of existing database using SQLDMO at run time.
plz help me. looking forward ur reply.
thankx
|
|
|
|
|
Basically you create a new database using SQLDMO. Then there is a Transfer object and you set the TransferAllObjects property to True, and run the transfer. It does exactly the same thing as the DTS Wizard.
There are examples of how to perform both the create and the transfer on MSDN. You need to review the MSDN carefully to see that you have the proper service packs installed for whatever version of SQL Server you are working with. The Transfer can fail under certain circumstances but still return successful.
Details are all on MSDN ...
|
|
|
|
|
hi dear programmers and developers.
i wanna use scanner and optical pen in windows form and i dont know and i haven't proper activex to use them.please describe and help me complete about this problem.
i have alittle time for solve this problem .
please help me
thanks and i am await for your faithfull help!!
miracle.ml@gmail.com
paradise_best@yahoo.com
|
|
|
|
|
|
Hi
i have to implement a neural network but unfortunately i have no experince or idea how to implement or start implementing a artificial neural network. if anyone could please guide me how to start implementing or show an example of implementing any simple artificial neural network or any evolutionary algorithm it will be a great help.
|
|
|
|
|
This is a topic that is WAY too big for a forum environment. There are entire ciriculums in Universities dedicated to the subject. There are many ways to implement a neural network, but which method is best depends on what you're doing with it and what you want it to do.
You're best approach would be to pick up a couple books on the subject and start reading. There is ALOT of foundation material you need to understand first.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
i've got a sub which requires copies a memory location who wants a buffer ptr of type integer (i think it comes from C++ code where buffer pointers are manages as integer). Now i don't know how to manage it in VB.NET couse i could not use a syntax like cam.CopyImageBuffer(&p, p.Size) [where p is an IntPtr] there's a way to handle these case?
Syntax is:
CopyImageBuffer(BufferPtr as Integer,BufferSize as Integer)
Thanks, Daniele.
|
|
|
|
|
hi all!!! =D
i need to know, how, can i send command parameter to an opened file!!!
following this part of code:
Private Sub mnuclass2jadfile_Click()
cdlFiles.Filter = "Files (*.class) |*.class"
cdlFiles.DefaultExt = "class"
cdlFiles.DialogTitle = "Open File"
cdlFiles.Flags = cdlOFNFileMustExist + cdlOFNPathMustExist
'On Error GoTo No_Open
cdlFiles.ShowOpen
Open cdlFiles.FileName For Input As #1
supposing i want send this command to opened file:
ShellExecute Me.hwnd, "Open", "jad.exe", " jad *.class > \jad", "\jad", SW_SHOWNORMAL
any suggestions!?
tnx.
|
|
|
|
|
psyq wrote:
Open cdlFiles.FileName For Input As #1
I asasume this opens a file for reading ? A file that is opened to read, is not actually run, so there's nowhere to pass the command line to. Use ShellExecute ( as you did ), for this.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi
Can anybody help me. how to print Grid Control values with heading and Report Header.
Thanks in advance
|
|
|
|
|
is there is way to extract the line number causing the error
Like Stack Trace displays the proper error massage with the line Number.
I have tried ERL() but its not working
Can anybody help ?
as early as possible
Thanx in advance
Hema Chaudhry
|
|
|
|
|
Why would you need to? The line the error occur on is just about never the real cause of a problem anyway. Also, the line the error was thrown on wouldn't be available in Release code anyway.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Actually I am looging all the activities with error in a log file
so that if a application have some errors By checking this log file I can debug that later.
So tha's why i want to extract the line Number of the error with source . Source can be easily get by ex.source . But how to extract the line number.
|
|
|
|
|
The closest your going to get is the StackTrace. It appears that you can't get the line number at all. The old-style Err object in VB6 doesn't work the same way in VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I have come out with an office COM to create a custom button in Microsoft Application Eg. Word, Excel. The problem is how can I get the path of the saved document or how can I save the document when I click on my Custom button.
Any one knows what I'm talking about?
Please help.
Thanks
|
|
|
|
|
Each Office application behaves differently.
With Word you need to play with ActiveDocument or Application.Documents to get a Document, then you can invoke the Document.Save and Document.FilePath (I think).
With Excel you have ActiveSheet instead of ActiveDocument. It may also have slightly different functions that you need to call for saving and getting the file path.
Check the MSDN documentation for Office VBA programming. For MS Word http://word.mvps.org/[^] is a great website to help in Word programming.
All the best,
Ed
|
|
|
|
|
Thanks..that helped alot...How about microsoft outlook mail..how do I get the saving path?
|
|
|
|
|
I have an expression which when i assign to Dataview's rowfilter gives an exception. Expression is
DataItemSize like '9%'
it works fine when i pass a string like
DataItemSize like 'g%'
What am i doing wrong?
-- modified at 5:01 Tuesday 27th September, 2005
|
|
|
|
|
Hi,
I am new to VBA. I'm writing a macro that asks a user to login with username and password. Once his username and password is checked, the macro opens another workbook. To run the second workbook, the username and the password of the user has to be present. I want to send the value of the username and password to the second excel workbook. Can anyone please help
By the way, I need open another excel workbook. I am not supposed to do the program in only one excel workbook.
I open the second excel workbook by calling the function below :
Sub example_template()
ChDir "C:\SymbolsExcelReports"
Workbooks.Open Filename:="C:\SymbolsExcelReports\Example_Template.xls"
End Sub
Thanks for helping
ksumputh
|
|
|
|
|
I have a datagrid attached to a database table. I know that there is no such event in datagrid as column resize.
But is there a way that i can capture the datagrid column resize during runtime.
|
|
|
|
|
I'm not 100% sure how it's done but you could try looking up the DataGridColumnStyle.WidthChanged Event in MSDN and playing around with that.
The man who smiles when things go wrong has thought of someone he can blame it on.
If you tell a man there are 300 billion stars in the universe, he'll believe you. But if you tell him a bench has just been painted, he'll have to touch it to be sure.
|
|
|
|
|
I have written and installed a service using VB.NET. I'm no great shakes with Windows services, but I believe I've done everything according to various resources I have consulted.
Problem is that the Windows Service starts up, and within a second or two, stops. When I start it via the SCM I get a popup advising that some services start then stop because they have nothing to do.
My service creates a timer which is supposed to fire every 60 seconds to check and process files in a given location. Apart from setting the timer on startup the service does no other useful work.
Am I supposed to put a never ending loop in the Main() subroutine or something?
|
|
|
|
|
OK, I've created an almost identical Windows Service.
But I did not use a Sub Main as an entry point - just created the typical Service style class. So that might be the source of the problem - I cannot comment on that.
The other thing to look for is if you dragged a Forms timer onto the graphical designer, it will not do squat. You MUST use a System.Timer. VS does not complain, nor does the service throw an error if you used a Forms.Timer, it just simply does not work.
Since I have only created simple timer based services I've never tried to figure out the complexities of debugging one.
I suggest you add an event logger and just write status entries at many points. That has been adequate for me so far in terms of debugging. It may be crude but it is a simple way to figure out exactly what your service is doing...
|
|
|
|
|
Hi ,
I want to develope an urdu/arabic based database application usin vb.net and SQL Server 2000 any one can
help me how i can do this .If anyone can give Code Example in any languge
|
|
|
|
|
You can do it by using Resource files
Resource files have the values for the controls etc.
In resource files u save the value in your desied language
Get the values from these resource files to display.
Hema Chaudhry
|
|
|
|