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

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

JoshKorn

Member List

Sébastien Nunes
M Thomas
jackli_0112
Tao Wang CSI
Mateusz Rajca
PaulSw
bryceflorek
cgraus
Sveind
bjquinniii
Dreaded Eddie
Whoisit
A. Heuts
kicks_joy_darkness
ManishSingh
adorer
jerfoo
Zor_Prime
Sideout
Kamii47
Only Title

JoshKorn's Q&A profile

  • Visual C++ Areas which act like button in OLE

    I've noticed that in OLE containers and in flash there are areas which act like buttons. but they don't show up as buttons on windows spy programs - they don't show up at all ! i guess there must be a window rect area set up and when it determines the mouse is over this area, it animates a bitmap, or actions some code if mouse clicks within the area. my question is, how do i determine the 'hit area' of the button if i don't have the source code. any help or pointers would be greatly appreciated ! thanks For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups OTP Thanks, Ayman Shoukry VC++ Team ...Show All

  • Visual C# GetManifestResourceStream / parsing / stream reading

    Evening folks, I'm making a small addin for windows live messenger, this .dll file will be sandboxed, so i dont have any IO or Inet access.. so the way i'm doing things is like this: I have a file, quotes.txt which is an embeded resource, i can access the file using GetManifestResourceStream heres some code :) Assembly _assembly = Assembly .GetExecutingAssembly(); Stream str = _assembly.GetManifestResourceStream( "StatusMsgChanger.quotes.txt" ); Random r = new Random (); int i = r.Next(16); string str1; str1 = string .Format( "quo{0}" , i); messenger.AddInProperties.PersonalStatusMessage = str1; the text in my quotes.txt file is like this: quo0, This is a quote ...Show All

  • Visual C# How might I re-write this code?

    Hello, I was just wondering how I might re-write this piece of code to avoid CS1612 private void btnLog_Click( object sender, EventArgs e) { if ( this .Size.Height == 237 && this .Size.Width == 243 ) { cursize = "large" ; } else { cursize = "mini" ; } if (cursize == "mini" ) { btnLog.Text = "Show Log >>" ; this .Size.Height = 237 ; } else { btnLog.Text = "Hide Log <<" ; this .Size.Height = 125 ; } } Any help would be greatly appreciated :) Regards Jason Yes I agree with the other guy that replied. If there are only two states I would use a Boolean but if there ar ...Show All

  • Software Development for Windows Vista Compiling a Custom Activity

    Hello. I'm trying to compile a custom activity in xaml (not a workflow, just an activity) using the WorkflowCompiler class, but I get the following error: "Cannot compile a markup file which does not contain declaration of the new workflow type". Here's my code: ///Create the custom activity to serialize and compile. ActivityLibrary1. Activity1 act = new ActivityLibrary1. Activity1 (); act.MyText = "!!Hola Mundo!!" ; ///Serialize the class WorkflowMarkupSerializer serializer = new WorkflowMarkupSerializer (); XmlTextWriter writer = new XmlTextWriter ( "c:\\temp.xoml" , Encoding .UTF8); serializer.Serialize(writer, act); writer.Close(); ///Compile it WorkflowCompiler compiler = new ...Show All

  • Visual Studio Express Editions Call Delphi DLL in C#.net 2.0

    HI All, I have Delphi DLL. It has many functions. its retun(s) int,float or record sets. How do i Call the Dll in C#.net 2.0. Delphi is a unmanged Code, C# is a Managed Code due to this, is it  Cause any data lost. Please Give Sample Code.   Thanks       MSDN Example: using System; using System.Runtime.InteropServices; class MainClass { [DllImport("User32.dll")] // Put the DLL with Exe and replace its name with User32.dll public static extern int MessageBox(int h, string m, string c, int type); // Here you need to replace the function name with correct parameters static int Main() { string myString; Console.Write("Enter your message: "); ...Show All

  • Software Development for Windows Vista using External Service with the Custom Activity

    I have a long running custom activity and tasks related to this activity are handled by the custom external service registered with the runtime. The mechanism adopted to realize this a) The external service Enqueues the Workflow Queue once the Task is done. b) The custom activity subscribes for notifications from the Queue via queue.RegisterForQueueItemAvailable c) Once the notification is received, The data is dequeued from the workflow Queue and subsequently the custom activity unsubscribes from the queue and deletes the Queu and invokes CloseActivity on the ExecutionContext This mechanism seems to work quite well I now have a need to add an additional activity along with the first one which also performs long running Task. I wa ...Show All

  • Visual Studio Problem with Sandcastle generated HTML files

    Hi, I am currently testing Sandcastle (August CTP) together with E. Woodruff's GUI. I set the option so that intermediate files are not deleted. My goal is to upload the uncompiled HTML files to my webserver for my users to consult online. However, when I attempt to open the HTML files in IE6, I get a javascript error: "Access denied", and then another: "lfc is null or not an object". I debugged the javascript and the "Access denied" error occurs when trying to access a style, which is declared using the ms-help: protocol. Could that be the cause of the problem Strangely, the error occurs only in IE, not in Firefox. Also, it runs fine in file: protocol, and fails only in http: (both on localhost, or o ...Show All

  • Visual Studio Team System Shelveset Report

    Does anyone have a shelveset report they'd be willing to share. I could build one but RS, especially from the aesthetic point, is not my strong suit. I'm looking for a report that lists all shelveset and owners- if it has some criteria for date and grouping etc great... but if not I'll modify. I think it's crucial for dev leads to have access to whats on the shelvesets and how long they have been there. Michael, I would be very interested to know if I missed on something. Is there shelvset data somewhere in warehouse cubes that you are planning to use in your RDL Cheers, Eugene ...Show All

  • Visual C++ Compiler Warning ""At least one of the arguments for ... can not be marshaled"

    Hi, I keep getting compilier warnings like this: Warning 12 At least one of the arguments for 'COWSplineCalc.CalcSpline' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate. The warnings started after I moved the project to VS2005 running under Vista. I've found no documentation on the warning. Can I suppress it somehow Any input would be appreciated. Thanks. Mikhail Hello Re: Compiler Warning ""At least one of the arguments for ... can not be marshaled" I am going to mark this thread as answered since you have not followed up with any further information on ...Show All

  • Visual Studio remote debugging vs2005/vista - does not have permissions

    Hi My local (VS) machine is XP SP2, my remote machine (debugee) is Vista beta 2 (5384.4). I cannot debug managed code remotely, getting the following error message: Error while trying to run project: Unable to start debugging. The Microsoft Visual Studio Remote Debugging Monitor on the remote computer does not have permission to connect to this computer. Please see Help for assistance. Occasionaly (once in 5-6 times) I get the following error message: Error while trying to run project: Unable to start debugging. The Microsoft Visual Studio Remote Debugging Monitor on the remote computer cannot connect to the local computer. A firewall may be preventing communication via DCOM to the local computer. The firewall is turned ...Show All

  • .NET Development VWD 2005 Express:Compilation Error BC30002-Type 'Conc' is not defined in SqlDataSource, DataView, CType Function & Page_Load

    Hi all, I have a database "ChemDatabase" with a Table "LabData" that has 4 columns (SampleID, SampleName, AnalyteName and Concentration) in my SQL Server 2005 Express. I tried to get a value of Concentration for a selected chemical Analyte from the Table "LabData" via SqlDataSource, DataView, CType Function and the Page_Load procedure in a Web page "Default.aspx" with "Default.aspx.vb" of my Web site "AverageTCE" in my VWD 2005 Express. When I executed the attached code, I got a Compilation Error BC30002: Type 'Conc' is not defined: Source Error: Line 9: Partial Class _Default Line 10: Inherits System.Web.UI.Page Line 11: Private SelectedConcent ...Show All

  • Visual Basic Copy Folder to new location

    Help. I am trying to setup a sample application code I got from someone to copy a folder of a persons choosing from a dialog box, to a new location that is chosen from another dialog box. Currently this application works, but does something I don't want to happen. When the files are copied, it recreated the entire root structure to the folder instead of just coping the folder selected. Example: folder selected was c:\documents and setting\user\my documents\labels Copy to: c:\documents and setting\user\desktop The application created the file structure documents and setting\user\my documents\labels on the desktop instead of just the "labels" folder. Any insite would be grateful. Ok, this is what I wan ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. scrolling background with xna beta 2

    I made a scrolling background with xna using the example in the documentation and what I got is a very jerky scrolling - especially when there are extra moving sprites on the screen. After that I used the same background with the well known "star trooper" game example of microsoft webcast series and ... the scrolling is perfect. Additionally, in both cases I used windows of the same size, and one and the same scrolling speeds. The "star trooper" example works much better than the xna on, even with the moving sprites on the screen. Do somebody have an idea if this is a bug in xna and are they going to correct it in the final release Creating games with xna is very pleasant and I'd really like the xna team to cor ...Show All

  • SQL Server TSQL Queries against Cubes in SQL Server 2005

    I have heard rumor that this can be done. Does anyone know where I can find a sample of this or it will even work against Analysis Services Cubes Also, there are always caveats to any approach, I assume that the full syntax would not be supported so any info on the caveats would also be helpful. Gary Not TSQL, but Analysis Services supports limited subset of SQL. It is documented here: http://msdn2.microsoft.com/en-us/library/aa936672(SQL.80).aspx ...Show All

  • SQL Server Need a task that will zip a file prior to upload via FTP

    I have a text file I need to zip (compress) before uploading it via an FTP task. Do I have to use a third-party tool to do this Thanks. We purchased WinZip product with command line interface. I added an Execute Process task to run the WinZip and I pass the file name in the command line arguments. There are other products that can do the same I believe, such as PKZip. ...Show All

©2008 Software Development Network