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

Software Development Network >> Duncan-Countrywide's Q&A profile

Duncan-Countrywide

Member List

Saad Ahmed
Allen Razdow
Lita123
nikos_22
Sudhakar D.V.N
svid
Rod Blackwood
babka
Scott Chang
ChanKaiShi
Patrick8639
Ganbaa
Alanu
Brian Kramer
Speedbird186
adt2005
selva_kumar
mark aoki
vb_n00b
woon pun
Only Title

Duncan-Countrywide's Q&A profile

  • Software Development for Windows Vista WMI Win32_NetworkAdapterConfiguration EnableStatic call fails with error 0x80070005

    Here is the code I am using: strComputer = "." Set objWMIService = GetObject( "winmgmts:\\" & strComputer & "\root\cimv2" ) Set colNetAdapters = objWMIService.ExecQuery ( "Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE" ) strIPAddress = Array ( "192.168.0.1" ) strSubnetMask = Array ( "255.255.255.0" ) For Each objNetAdapter in colNetAdapters WScript.Echo objNetAdapter.Caption If Left (objNetAdapter.Description, 15) = "Realtek RTL8150" Then errEnable = objNetAdapter.EnableStatic(strIPAddress, strSubnetMask) If errEnable = 0 Then WScript.Echo "The IP address has been changed." ...Show All

  • Visual Studio Express Editions Problem with WebBrowser1

    Well, not so much a problem, just something I don't know how to do, if it's possible. I made, wrote, what ever ya call it, a Web browser. It works fine, but on some site when ya click a link or button it opens in a new window, thats when Internet Explorer kicks in. Is it posible to how those open in WebBrowser1 and not have Internet Explorer kick in at all also, how do I add an Add to Favourites to the Browser And if posible, How would do I add an option, if posible, to be able to set the Browser as the Default browser Am still learning program and still got a long way to go. am using visual Basic 2005 Express Edition. Thanx for ya help, very much apreciated. Chris ...Show All

  • Visual Studio Accessing parent project from invoked child project

    When a project calls msbuild on a child project - is there any way to access anything in the invoking/parent project Is there any way to determine the project filename, or anything about the parent project This could be either via the msbuild XML or from a custom task, ie via the object model. I've been looking at the object model and at the internal classes but haven't found anything appropriate. /marcus Will this work for BinariesRoot and SolutionRoot We are trying to call a child project so we can build some C# projects in the child project and put the binaries in the same output folder as some C++ projects that are built in the parent project. So far nothing happens when the child project builds and ...Show All

  • Visual C# need help with code

    I am trying to write a program kinda like a receipt and I am having trouble with this. What I need it to do is look like this: Please enter the price of the item: Please enter the quantity of the item: Please enter the total of the item: It needs to continue until you want to end it with like(-1) or something. Any suggestions It would be greatly appreciated. Thanks >> I need to be able to type any number in that field. You seem to be a bit confused. You can't type anything at all into an int or a decimal value. What you need are TextBox fields, say txtQuantity and txtPrice. Then you would write: int Quantity; decimal Price; void btnSave_Click(object sender EventArgs e) { Quantity = Convert.T ...Show All

  • Microsoft ISV Community Center Forums key in date and filter the data in a week

    Hi all, I have question on VBA which is quite difficult for me. I need a VBA code that can filter out all data in a specific week after i type in a date, any date within that week in a textbox which i have previously created. For example i have a table of dates corresponding to number of week: Week 1 02-Jan-2006 09-Jan-2006 Week 2 09-Jan-2006 16-Jan-2006 Week 3 16-Jan-2006 23-Jan-2006 Week 4 23-Jan-2006 30-Jan-2006 Week 5 30-Jan-2006 06-Feb-2006 Week 6 06-Feb-2006 13-Feb-2006 Week 7 13-Feb-2006 20-Feb-2006 Week 8 20-Feb-2006 27-Feb-2006 Week 9 27-Feb-2006 06-Mar-2006 and ...Show All

  • Connected Services Framework Eventing in CSF

    Hello, I would like to get more details about how to use eventing when writing a WES for CSF. First of all I would like whether there is any difference between the Provisioning Events, Health Events and Usage Events The provided samples with the WES toolkit don't implement any of them (except usage) so I would like to know if they are all implemented in the same way. To the more importaint question: how do I configure the sample from the WES toolkit for Usage eventing to work What is the role of Usage Event Poller included with the WES toolkit Generally what I would like to know is how to send events Is there any more documentation written on this matter And one more dummy question. What is the difference between sending a message in CSF ...Show All

  • Gadgets Dynamic Height

    Hello to all, this is my first post, i hope you can help me :) I'm creating a gadget for the forum of a my friend. The gadget reads, from a php web page, the title of the latest 3 active topics in the forum, the number of replies, and other info, it writes them in a table, the table is composed by 3 cells, the first and the third are used only for display pictures (the "head" picture and the "end" picture of the gadget), the middle one is where the information read from the php are written. I also add the refresh function and it's work perfectly. The gadget works pretty well but the topics title isn't everytime of the same length, so i can't set a default height for the gadget but i need to set it dinamically, bec ...Show All

  • Visual C++ Why doesn't PDH work?

    Hello, I've been trying to develop an application that reads the CPU load from the computer and the free RAM memory available. To do so, I was primarily thinking about using the PDH interface, since we are building to Windows Server 2003 and Windows XP, both of which already come with the PDH.dll. I downloaded the platform SDK from Microsoft's site, and I am using Visual Studio 2005. My dilemma is, every time I try to compile the source code, it gives me several errors, even with example codes taken from Microsoft's site. It gives me several unindentified objects in _main (it cannot understand/localize the commands, datatypes and so on). I don't understand why. I tried copying the pdh.h and pdh.lib to the main i ...Show All

  • Visual Studio Team System TF60096: Ghost files in VSS

    I am getting hundreds of errors when attempting to migrate source code from VSS to VSTF. It keeps erroring out on files that don't even exist in VSS (from what I can see). I have run a VSS analyze and it states that there are no inconsistencies. How can one remove these ghost files from VSS before I do the conversion ...Show All

  • SQL Server Are these the correct steps? -- Encrypted Connection String and Security

    Hi, Assume I have an asp.net/sql server 2000 web app in a shared hosting environment. I then encrypt the connection string using ProtectSection("DataProtectionConfigurationProvider") in the page load of my default.aspx page. Am I understanding the following concepts then correctly 1. I upload the site to the shared hosting server. 2. The first time I run the app eg. www.whatever.com/default.aspx , the ProtectSection method above is executed. 3. Now the conn string area of my web.config is encrypted, and asp.net will decrypt as needed. 4. If someone were to hack the server and view the web.config -- whether via getting into the server or via ftp, they would see an encrypted connection string. Thanks very much! ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. PC project -> 360 (including Game Library)

    Hello, I just wrote a little puzzle game (Windos Game Project) and now I want to build the 360 version of it, but I have a little problem (probably PEBKAC *g*) I wrote a content-processor for instanced rendering (overriding ModelProcessor) and implemented a new ContentItem called 'Font'. It reads the *.fnt files from AngelCode Bitmapfont Converter. Because I want to reuse this, I put it into a "Windows Game Library" and everything works fine.. Now, if I try to put my custom content stuff into a XBox 360 Game Lib, the build process told me, that there exists no "TargetPlatform" enum - which is needed for the serialization methods. After thinking about it, I realize, that I wouldn't make sense that th ...Show All

  • Windows Live Developer Forums Combining Virtual Earth and Google Earth?

    Hi, I am wondering if it is somehow possible to combine the Virtual Earth maps with the Google Earth satelite images. In my country (Chile) there is no map coverage from Google Maps but Virtual Earth offers pretty fair details for certain regions. However, the satelite images from Google Earth are way better than those of Virtual Earth. Now, my idea is to realtime import the map info from Virtual Earth to Google Earth and visualize it in a ground overlay. But of course there is the problem that I would need the map info from Virtual Earth in a data file format suitable for the import to Google Earth, that means some kind of graphics or vector data - right Has anyone an idea if it is posible to realize my idea considering that Virtual Earth ...Show All

  • Windows Live Developer Forums live messenger becoming increasingly unreliable

    Has anyone else had this problem WLM is losing more and more messages lately. I had a friend over on my local wifi network and we were both messaging each other and nothing was showing up. It never gave us the undelivered warning or anything, just didn't send the message. This is becoming a lot more common too. It's hard to develop with something that I flat out can't count on. ...Show All

  • Visual C++ strange error :-S

    BITMAP HdcToBitmap(HDC hdcNeedle, int needleWidth, int needleHeight) { HDC memDC_Needle = CreateCompatibleDC(hdcNeedle); HBITMAP memBM_Needle = CreateCompatibleBitmap(hdcNeedle, needleWidth, needleHeight); SelectObject(memDC_Needle, memBM_Needle); BitBlt(memDC_Needle, 0, 0, needleWidth, needleHeight, hdcNeedle, 0, 0, SRCCOPY); BITMAP bmpNeedle; GetObject(memBM_Needle, sizeof(BITMAP), &bmpNeedle); return bmpNeedle; } These are all linker errors, which means you have all the correct headers in your project, but you're not linking to the libraries that contain the actual methods. There is nothing wrong with your code ( assuming that you intend the resource leak of memBM_Needle), but you're not linking to Gdi32.lib, which makes me ...Show All

  • Visual Studio 2008 (Pre-release) Security timestamp problem

    Hi, I have a service with "message security". When I try to connect to server I receive this error : "The security time is invalid because its creation time "15/01/2007 13:39:40" is in the future. Current time is "15/01/2007 13:34:27" and allowed clock skew is "00:05:00" The date/time in both (Client and Server) are same and isn't "13:" but "10". In the server is "en-US" and in the client "pt-BR" so GMT -3 is correct from client but I'm using the same date/time in both. Why WCF uses it if we can connect from diferrent culture with diferent data/time In others computer all work fine...one using "pt-BR" and other "en-US". ...Show All

©2008 Software Development Network