Software Development Network Logo
  • Windows Forms
  • Microsoft ISV
  • Windows Vista
  • Visual Studio
  • SharePoint Products
  • Smart Devicet
  • SQL Server
  • Audio and Video
  • Visual C++
  • .NET Development
  • IE Development
  • Visual FoxPro
  • Game Technologies
  • Visual Basic
  • Visual C#

Software Development Network >> Shmelly's Q&A profile

Shmelly

Member List

Tejas34
Bill Foust-DAI
Allen Razdow
RickGaribay.NET
yzhang12
kopo
Joel Poiron
Deepesh Verma
My Name is Adam
pinoyz
Shawn Rheal
erick_the_redd
Alex974
mfdiqwer
thomas_woelfer
Helder Santos
babu171
wuzzle
ozakiweb
CFutino
Only Title

Shmelly's Q&A profile

  • Visual Basic Option Strict On disallows implicit conversions from 'Utilities.MessageBox.Products' to 'Utilities.MessageBox.Products'

    This error has me completely baffled. We have a property on one of our UserControls which takes something of type Utilities.MessageBox.Products (we wrote our own message box for the purposes of our program). Public Enum Products As Integer Prod1 = 1 Prod2 = 2 Prod3 = 3 End Enum It is all declared properly, everything has a unique type. The compiler tells me that I should cast it: Me.Sheet.Product = CType(Utilities.MessageBox.Products.Prod1, MessageBox.Products) Which gives me the exact same compiler error on the first argument into CType (how can you get a conversion type error inside a cast at compile time !). Anyway, this makes no sense, something is seriously wrong. Has anyone encountered this before I don't want to turn off ...Show All

  • Visual J# how to create DLL file in J# or convert J++ dll into J# dll

    Please help me...I know nothing about J#.  The following code is written by J++ for dll file.  I need to either convert those code into J# or create new J# dll file.  However, I have no clue how to start it.  Could someone help me as soon as you can.  I really appreciate it.  I only have one day to finish this assignment. import java.io.*; /**  * This class is designed to be packaged with a COM DLL output format.  * The class has no standard entry points, other than the constructor.  * Public methods will be exposed as methods on the default COM interface.  * @com.register ( clsid=5BD97072-819B-4FFF-A6BD-6980F93EBA49, typelib=842EE387-31B5-4F8F-AECC-F449F5204038 )  */ public ...Show All

  • SQL Server Using CASE in WHERE statement

    Hello, This is what I'm trying to do : ALTER FUNCTION [dbo] . [CAExportSelectAll] ( @CodeLabel nvarchar ( 255 ) ) RETURNS TABLE AS RETURN ( SELECT CodeLabel FROM CAExportPreSelect WHERE ( CASE WHEN @CodeLabel = 'CLASSIQUE' THEN CodeLabel = 'NV' ELSE CodeLabel = 'MT' END ) ) It doesn't work, and tells me there's something wrong in the WHERE statement. Where am I going wrong Thanks very much. Thanks a lot Dave. Actually I have found a solution to my problem that is slightly different to yours, here's what I did : ALTER FUNCTION [dbo].[CAExportSelectAll] ( @CodeLabel nvarchar(255) ) RETURNS TABLE AS RETURN ( SEL ...Show All

  • SQL Server How do I create a Relationship in DB Diagrammer ?

    Hi Folks, When I try to create a Relationship between two Tables I find the Relationship is always created from the Table I start with to itself. I seem to have to select a Table to enable the Create Relationship option, and then when I 'Add' it creates a recursive Relationship to that Table. I guess it must be possible to do what I am trying to do I'd appreciate any advice. Thanks. Barry You need to add at least 2 tables (relationFrom/To). When you have your tables on diagram surface click and drag the key column on to foreign key column of other table. ie: If you have 2 tables: Customers: CustomerID primary key Orders: CustomerID foreign key Click and drag Cust ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Suggestion for stock Vertex structs

    I notice that the framework provides a few stock vertex structures like VertexPositionColor etc. This is cool but it would be great if these could inherit from an interface which provides a mechanism to get the SizeInBytes and Element information abstractly. These structs currently provide this information as static properties but this is no good if you are are trying to write a generic function that can deal with a number of different types of vertex structures seamlessly. My suggestion is that in future something like an IVertexInfo is provided that lets you deal with these concrete vertex structures abstractly.  Perhaps something like this. interface IVertexInfo {     VertexElement [] Elemen ...Show All

  • Microsoft ISV Community Center Forums Excel Macro to Capture Live Webcam Image?

    I am attempting to write a macro which will access my USB connected camera, grab a picture, and paste it into an active cell. I am able to do this manually by simply locating the cursor at a cell location, selecting "Insert - Picture - From Scanner or Camera", Selecting the Twain resource for my camera, Selecting Custom Insert, Selecting Take Picture... and viola, the active view from the webcam is placed into a cell I don't expect a macro to do all of this, however, I would like to create a simple keystroke macro that will just bring up the Twain dialog box which has the "Take Picture" button displayed. I have been toying around with the VB objects in the WIA library, but have not yet been able to successf ...Show All

  • Smart Device Development hPrevInstance Error Cxx0030

    I hope someone can help me with this problem. I am converting an application from eVC++ to Visual Studio 2005 C++. I was able to fix all the linking errors and was able to build the solution. When I try to deploy the application either to the emulator or an actual device the application starts for a second then crashes. It breaks at afxWinMain(), stating that hPrevInstance is "unable to evaluate expression." Any suggestions would be greatly appreciated. Thanks. The error code that you have mentioned comes when debugger could not obtain the value of the expression. Also, hPrevInstance is always passed as NULL under Win32 world and is not used. Also, I have tried to convert a working default eVC++ application to VS 2005 appl ...Show All

  • Visual Basic Multithreading cancellation Methode

    Hi All, Lately I explore about multi threading,because there is a urgent need to implement this feature.I came up with a case of multi threading cancellation. There is two kind of multi threading we have. 1. threading in the program itself. ex. Private Sub Worker_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles Worker.DoWork Dim intI As Integer Dim intJ As Integer Dim intK As Integer Dim counter As Integer For intI = 1 To 20 For intJ = 1 To 20 For intK = 1 To 20 counter = counter + 1 'DO SOMETHING HERE Next Worker.ReportProgress(counter / 8000 * 100) Next Next End Su b 2. threading t ...Show All

  • Visual C# is as Keyword

    I have a general event handler function. and has a general object passed to it, but I have to use a "is" or "as" to decode the type, is it possible that the base class can detect the type and call the function for that type I don't what to use methodinvoke because it is so slowwwwww. Another apporach would be to anonymous delegates would help but I don't like putting several delegates in one method to handle each type.. and I would have to use continutions to continue the event pump... (ie see robots framework for an example) And I don't want to declare delegates for each type because this means more work for the programmer... void handler(baseobject ev){ if (ev is MyEvent) { MyEvent evmy= (MyEvent)ev); ...Show All

  • Windows Forms Two blank error dialogs running setup.exe

    On running the setup.exe from my clickonce deployed application I am getting two blank error dialogs immediately. However, double-clicking the .application file runs my application with no problems. Does anyone know how to fix this Quite a few of our developers are experiencing this problem. I managed to fix this by doing the following: Delete Setup.exe uncheck "Sign the ClickOnce manifests" under the project properties Republish ...Show All

  • .NET Development how to associate a filetype with a windows service

    suppose i have a custom file format with an extension. how do i associate that file extension with a windows service. suppose when i click on the file with particular extension '.dmz', the particular windows service is automatically invoked. should i use filesystem watcher component. i do not want to exactly associate a file type to associated with a service. but i want the service to respond when i click a file with a particular extension. can i use a filesystem watcher component for this ...Show All

  • Visual Studio 2008 (Pre-release) Add IPTC/XMP-Keywords to a jpeg without touching the image itself (like recompression)

    I'd be happy, if someone could help me. I have to add IPTC/XMP Keywords to a lot of jpegs. I found a sample in this forum (Post from RenRen 19 Jan 2007, 9:54 PM UTC ). When I test this sample, the image gets recompressed from 1516kb to 376kb. I would like to keep the image itself untouched. Can anyone tell me, how to get this done A link to a tutorial or a good book would help me as well. Greeting from germany, Florian Having looked around a fair bit - that thread you mentions seems to be the best bet I'm afraid. i.e. it doesn't seem possible via .Net 3 unless there is enough space in the MetaData section of the file. If you're working in C++ then you may like to check out the Adobe XMP SD ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Video/Animation Playback

    Hi, I'm currently writing a library (for XNA/DirectX) for animation/soundless video playback, and I have a few design questions for the pros out there if you don't mind answering them : I'm having my animation class inherit from game component, and update the frame depending on game time in the overriden Update method, and render it in the overidden Draw method, but even when I preload my textures to render, playback is choppy. Not sure exactly why, but I notice this only when I have significant number of frames (I noticed it with 100 frames, but *not* with 10/15). This problem may be linked and solved by the 2nd point, so please read on. When I preload all the textures for the frames in the animation (and the no. of frames ...Show All

  • Software Development for Windows Vista Visual resizing

    Hi! I am re-hosting the workflow designer. Is there any way to enable visual resizing of the activites in the workflow Thanks! Great!! It's working, but now i can't see the sequential workflow from top to bottom (the arrows between the activities). I can move the activities free around the surface. Is this the freeformdesigner How can I implement the arrows etc from the sequential workflow into the freeformdesigner thanks a lot! ...Show All

  • SQL Server Error connecting to localhost site to view SQL server Mobile Agent on Device

    I have set up a locahost site in IIS using the "Configure Web Synchronization Wizard". One of the first test I was asked to do was to open a broweser and browse to http://localhost/MobileTest/sqlcesa30.dll If all is well I should get a web page with the following line: SQL Server Mobile Server Agent 3.0 But unfortunately I get an error stating : " The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance." I checekd the Event log and found this error related the IIS launch process on my machine. DCOM got error "Logon failure: unknown user na ...Show All

©2008 Software Development Network