Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Red Sunday

@Red Sunday
About
Posts
15
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Edit box focus
    R Red Sunday

    I have an edit box called Login. How do I set the focus on Login at THE END of the string currently in Login? calling Login.SetFocus sets the cursor at the beginning of the string. I want it at the end. Thank you, Red Sunday ----------------- http://www.zachcalvert.com

    Visual Basic question com

  • From a Blob to some type of image in Java
    R Red Sunday

    Ok, to create an easy user interface I have created a Microsoft Access database that will store images in an ole object for a jpeg. :laugh:They can actually drag and drop a jpeg and it will convert to an ole object. Now in actual ODBC Java code, I am getting this same OLE object in the form of a blob Java object. How do I type caste this blob object into some type of image that I can display on the screen in the form of a jpeg?:confused: Thank you so much, redsuday69 ----------------- http://www.zachcalvert.com

    Database com question java database design

  • Java connection to MS Access
    R Red Sunday

    I am running code to connect to a database that stores theme data for a video game. This is the code I am running: import java.sql.*; //import all the JDBC classes import java.sql.*; import java.io.IOException; public class GetAccessToDatabase { static Connection conn; final String URL = "game.mdb"; public boolean OpenConnection() throws SQLException, IOException { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); } catch (Exception e) { System.out.println("Could not load the driver."); e.printStackTrace(); return false; } try { conn = DriverManager.getConnection ("jdbc:odbc:" + URL, "", ""); return true; } catch (Exception e) { System.err.println("Problems with get connection sent to "+URL+ ": "+e.getMessage()); } return false; } public void CloseConnection() throws SQLException { conn.close(); } public static void main(String args[]) { try { GetAccessToDatabase connect = new GetAccessToDatabase(); if(connect.OpenConnection()) { Statement stmt = conn.createStatement(); /* stmt.executeUpdate("INSERT INTO student " + "(name, studentNumber, class, major) " + "VALUES ('Smith', '17', 1, 'CS')"); */ // more database statements connect.CloseConnection(); } } catch (Exception e) { System.err.println("problems with SQL sent from "+"static main function"+ ": "+e.getMessage()); } } } And this is the message I receive from the exception thrown: Problems with get connection sent to game.mdb: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Basically, it doesn't see the game.mdb which I have placed in the local directory. I believe it is expecting some type of table in SQL, but how do I do that in MS Windows from Access? Any and all help would be greatly appreciated. Thank you, Red Sunday ----------------- http://www.zachcalvert.com

    Web Development database question java com game-dev

  • Serialize class module
    R Red Sunday

    In visual c++, you override the << operator, IE if myInstance was of a type of instance that I created, I would override << to be able to do fileio << myInstance. How do I do this for Visual Basic 6.0 where I can do Write #1, myInstance and/or Input #1, myInstance?:confused: Thank you, ----------------- http://www.zachcalvert.com

    Visual Basic c++ question com

  • MMControl Help
    R Red Sunday

    I am attempting to use 3 different MMControls in VB 6.0 - NOT .NET. These controls cause/throw no errors when I am using them, but only one is playing a sound. This is the code I use to initialize the 3 controls (all get the same initialization) UpMidi.Notify = False UpMidi.Wait = True UpMidi.Shareable = False UpMidi.DeviceType = "Sequencer" UpMidi.FileName = "UpBeat.mid" UpMidi.Command = "Open" UpMidi.Command = "Play" I have tried setting shareable to true (which then no sound plays), setting notify to true, wait to false, etc. Documentation on this has been little to none and I have no idea what to do from here. All 3 files must be played at the same time. It is testing a music student their capabilities to keep track with the beat, so it must provide them feedback. Any and all help would be greatly appreciated. ;) Thank you, Red Sunday ----------------- http://www.zachcalvert.com

    Visual Basic beta-testing csharp com testing help

  • Halt Sequence
    R Red Sunday

    I'm trying to find a safe way to put a delay of 4 seconds in my code in VB 6.0 (NOT .NET). This is the code I have: Public Sub Wait() i As Integer Halt = 4 Dim LTime LTime = Timer() While Timer() - LTime < Halt i = 1 Wend End Sub This works great except for one problem. If I am running a form, press a button that calls this function, and then close the form before this function is completed, the visual of the button is corrupted. Basically, when the draw window is called (IE with a form.show call), the button shows through to the background and saves that image at its interface. IE If I have a word doc behind it, close the form with wait in progress, and form.show the form, it will bleed through with the button with whatever text is in the box of the button. How do I fix this?:confused: Thank you, Red Sunday ----------------- http://www.zachcalvert.com

    Visual Basic help question csharp com

  • Modal Forms in VB 6.0
    R Red Sunday

    I load and show a form from the opening form of the application. We will call the startup form form a and the form that is called, form b. So a calls show form b. When form b wants to close, but not end the program, what needs to be called? Is it unload, is it deactivate? How do I get the form to close in such a way that the form a can access whatever has changed within form b? Thanks again, The VB NOOB ----------------- http://www.zachcalvert.com

    Visual Basic question com

  • Visual Basic Sequential File IO
    R Red Sunday

    I'm using VB 6.0, and it doesn't let me do Imports System.IO What do I do now? ----------------- http://www.zachcalvert.com

    Visual Basic question com help

  • Visual Basic Sequential File IO
    R Red Sunday

    it doesn't use the system namespace. I am using this for a school project and I must use the system namespace. Also, it only reports error codes. I need to be able to check to see if it exists, not catch errors. ----------------- http://www.zachcalvert.com

    Visual Basic question com help

  • Visual Basic Sequential File IO
    R Red Sunday

    First off, I have found some articles on the MSDN website that have pointed me in the right direction but don't have all the answers. Also, I am using Visual Basic 6.0. I need to be able to access a file and do a couple of things with it: 1) I need to find out if it exists and if not, then create it. I found System.IO.File.Exists("c:\ExistingFileName") but I get an error. I believe this error is due to the fact that I have not told the compiler I am using the system namespace. How do you signal the compiler you are using the System namespace in Basic? In C it would be using System.IO.File, but I have no clue in Basic.:confused: 2) What is the command to create a sequential file in Basic and what variable will I have access to? 3) How do I add to it/ close it when I am done? Thank you, Zach Calvert ----------------- http://www.zachcalvert.com

    Visual Basic question com help

  • Microsoft Development Environment
    R Red Sunday

    I have no idea what happened, if I did it, or how to fix it. All of a sudden, when I began to run my program using ctrl f5, the program will build and then I will get a dialog box with an ICONSTOP and the title "Microsoft Development Environment" and it has the text "Unable to start debugging. The Machine Debug Manager is disabled". It doesn't run the program!!! Well how in the world do I enable it again???:confused: ----------------- http://www.zachcalvert.com

    C / C++ / MFC com debugging help tutorial question

  • MMControl Help
    R Red Sunday

    I tried the regsvr32 bit and it didn't work. First off, the working computer does not have mmcontrol.ocx it only has the MCI32.ocx. We un-registered and re-registered this file and get the same error. Next, we are using VB 6.0 on BOTH systems. Neither one are using the .NET structures. I appreciate your help...we are soooo stuck.:~ Red Sunday ----------------- http://www.zachcalvert.com

    Visual Basic help com debugging question

  • Installation Package Question
    R Red Sunday

    I have written a dialog based program using visual c++ and am now trying to deploy the project. The project deploys fine on all Windows systems with the .Net structure built into it. Any system that does not have the .Net structure built into it will cause the Setup.msi to say "Must install .NET blah blah blah first" and then it will close my installation package. When I build the installation package within VC++, it says "WARNING: This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup." What, when, and where do I need to run that dotnetfx.exe? Do I include it with my installer? How do I do that?:confused: Thank you, Red Sunday ----------------- http://www.zachcalvert.com

    C / C++ / MFC question csharp c++ dotnet visual-studio

  • MMControl Help
    R Red Sunday

    I am using MMControl for playing a midi file on my software. I have never had it work on my computer, but the computer that I originally programmed on never had a problem. I am getting the error "Run-time error '424': Object required" and the Debug option takes me to the first line where I use MMControl. I have also tried it on someone elses computer and it works fine. I attempted to take the code from their computer back to mine and I get "Errors during load. Refer to .log' for details" I visited the log file and find Line 13: Cannot load control MMControl; license not found. Which to me is an odd error. What does this mean I need to do?:confused: Thanks in advance, Red Sunday ----------------- http://www.zachcalvert.com

    Visual Basic help com debugging question

  • display hypertext in a dialog box
    R Red Sunday

    I have two questions. First off, is there some control or typical method for displaying hypertext in a visual c++ dialog based program. IE I want blue text with a url behind it that pops up the web browser when the user clicks on it. Second, is there a way to call a method that does the click without the user having to click on the text. IE If they select a menu item labelled "visit online instructions", what would be the code to call the web browser and automatically link to www.someinstructions.com? Thank you!:) ----------------- http://www.zachcalvert.com

    C / C++ / MFC c++ com question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups