|
Welcoem to CP. Being a new Member here we would like to tell onething.
Before posting your query here you must get it from our Best Friend what for you are looking.
And here we are to help you if you got any problem in your application.
So please post the query accordingly.
SSK.
|
|
|
|
|
Dude, how on earth do you expect everyone to know what 'our Best Friend' means ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
There are two possibilities here
1 - you're the best they could find to impliment such a system in a third world country
2 - this is your homework
I'm betting on #2. We don't provide full solutions, homework or otherwise. We look at people's code, and provide advice. Right now, we don't even know exactly what your assignment requires, and even if we did, we would not do it for you, when you've obviously done nothing yourself.
Write some code, come back and ask us when you're stuck on something more fine grained than the whole project.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
*grin* good to be back.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: I'm betting on #2.
I would have to say. In a database course our project years ago was a driving school database/app. It was okay, quickly learned how to normalize databases :->
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Jshuwa wrote: Please help me with the codes.
Nope, I don't have the time and you don't have the money to pay me.
Jshuwa wrote: How can i develop a traffic monitoring system.
Start by doing requirements gathering, draw fancy-schmancy UML diagrams, etc. Then, starting coding away
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
How can i create or develop a car rental system using VB6. Thanks for your help.
|
|
|
|
|
The best help I can offer is located here[^]
"Okay, I give up: which is NOT a real programming language????"
Michael Bergman
|
|
|
|
|
VB6 is a dead language. I would recommend finding a course that teaches .NET languages instead.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
See my response to your Traffic Monitoring System thread.
Jshuwa wrote: using VB6
Why? VB6 is terrible. Use C# or C++, it is better for your resume and professional development
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
What's more important is that VB6 is a dead language. I don't care if people use VB.NET, much as I hate it, it suits some people. But, VB6 support is long over, I doubt there are any new projects starting in VB6, aside from small projects where this is done entirely because of limitations in the people available to do it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: I don't care if people use VB.NET
It is an okay language for the curly-cue-phobics
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I am sending emails through Outlook 2003. The problem I'm having is that the message goes into the outbox, but if the user's outlook isn't open, the message just stays in the outbox. Can I some how siently start outlook, and 'send/receive' all?
Dim OutlookApplication As New Microsoft.Office.Interop.Outlook.Application
Dim OutLookMailItem As Microsoft.Office.Interop.Outlook.MailItem
Dim imailitem As Int32 = Microsoft.Office.Interop.Outlook.OlItemType.olMailItem
OutLookMailItem = CType(OutlookApplication.CreateItem(imailitem), Microsoft.Office.Interop.Outlook.MailItem)
'Set To and Subject of the email.
OutLookMailItem.Subject = cSubject
OutLookMailItem.Attachments.Add(Me.emailDirPath + fname + cExtension)
'Display MailItem and let them fill in the rest!
'
' make it modal
'
Me.Cursor = Cursors.Default
OutLookMailItem.Display(True)
|
|
|
|
|
Have you figured this out, or are you still having trouble with it?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I found the answer:
Dim oApp As Microsoft.Office.Interop.Outlook._Application = New Microsoft.Office.Interop.Outlook.Application
Dim oNS As Microsoft.Office.Interop.Outlook._NameSpace = oApp.GetNamespace("mapi")
Dim oSyncs As Microsoft.Office.Interop.Outlook.SyncObjects
Dim oSync As Microsoft.Office.Interop.Outlook.SyncObject
Try
' Reference SyncObjects.
oSyncs = oNS.SyncObjects
oSync = oSyncs.Item("All Accounts")
' Send and receive.
oSync.Start()
Catch ex As Exception
MessageBox.Show("oSync Error: " + ex.Message, "Error Sending Email From Outlook")
End Try
' Clean up.
oSync = Nothing
oSyncs = Nothing
oNS = Nothing
oApp = Nothing
|
|
|
|
|
Any one here has work with the isis32.dll for the CDS/ISIS language, i have to wright a vb code with that and have same problems with one function IsisRecControlMap. that has a structure call IsisRecControl.
Thank's
Gasp
|
|
|
|
|
Never heard of it. It's also VERY unlikely you'll find anyone here who has used the library you're talking about. You'd be better off looking for a support board dedicated to the library in question.
|
|
|
|
|
Hi,
I'm trying to change the color depth of the user's monitor upon my app starting. I can't seem to find anything on the subject. I'm coding in 1.1 VB.Net framework. Any help would be great.
Thanks
|
|
|
|
|
First, your app, since it's running on a shared system with other applications, should NEVER change system-wide settings like this.
Second, why do you want to do this?
|
|
|
|
|
If you want to persist anyway, get prepared for some P/Invoking.
There isnt a function SetDisplayColorDepth() or so; instead you need access to the following
Win32 functions (below is C# syntax):
[DllImport("user32.dll")]
public static extern int EnumDisplaySettings (string deviceName,
int modeNum, ref DEVMODE1 devMode );
[DllImport("user32.dll")]
public static extern int ChangeDisplaySettings(ref DEVMODE1 devMode, int flags);
for which you also would need a number of constants and the DEVMODE1 struct; then add
some C# or VB code to obtain the supported settings, find the one you want, and set it.
If you havent done P/Invoke before, dont bother. Try something simpler first.
|
|
|
|
|
Hi,
I wonder if its possible to query the tables in a dataset same as we do with the database tables!
I have loaded my dataset with almost 10 tables and now want to extract data from four of those tables to display everything in a datagrid!
But i couldn't find a way as how easily it can be done?
In other words i was just trying to avoid the SQL JOINS ... so i opted for dataset manipulations..
any help in this regard will be appreciated!!!
Thanks
|
|
|
|
|
Well, if you wanted to do it the same way as you would from SQL, you'd STILL be using the JOIN's. But since you can't do it using the same SQL syntax, no.
What's so hard about learning the JOIN clause anyway? Just learn it and get it overwith. You'll need it in the future and it's much easier than the way you want to do it now, so why wait?
|
|
|
|
|
Yeah thanks for the good advice and i have already started working with JOINs somehow .. But still are there any ways to filter data from two or more tables of a dataset using some criteria?
Also, when i have populated my datagrid with three or more tables how can i update data in all three if some changes occur in datagrid?
thanks
|
|
|
|
|
My problem is that in the program that I am writing I cannot save the changes to database after I load the tables from it.
Dim connstr As String = "provider=microsoft.jet.oledb.4.0;" & _
" DATA SOURCE = megas.mdb"
Dim sqlstr As String = " select * from megas "
Dim dtb As New DataTable
‘--------------------------------------------------------------
Private Sub btnload_Click(…) Handles btnload.Click
dtb.Clear()
Dim dataadapter As New OleDb.OleDbDataAdapter(sqlstr, connstr)
dataadapter.Fill(dtb)
dataadapter.Dispose()
dgdisplay1.DataSource = dtb
End Sub
‘-----------------------------------------------------------------
Private Sub btnsave_Click (…) Handles btnsave.Click
Dim changes As Integer
Dim dataadapter As New OleDb.OleDbDataAdapter(sqlstr, connstr)
Dim commandbuilder As New OleDb.OleDbCommandBuilder(dataadapter)
changes = dataadapter.Update(dtb)
dataadapter.Dispose()
If changes > 0 Then
MsgBox("SAVED ")
Else
MsgBox("not saved")
End If
End Sub
I load the table form the database and nothing goes wrong with this part, but when I want to save the changes and I click the save btn , that is what I get
“An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll “
What am I doing wrong? And why should I be getting this?
Thank you.
• Thanks for the previous help from Dave Kreskowiak and Naji Kotob +mackay, it really helped, especially that article.
|-|■~F~|-|■
|
|
|
|