Funny Declaration Structure In MSDN KB DataTypes Documentation?
Oct 5, 2010I'm looking at the following in the Data Types docs for the Windows API:
#if defined(_WIN64)
typedef __int64 LONG_PTR;
#else
[code]....
I'm looking at the following in the Data Types docs for the Windows API:
#if defined(_WIN64)
typedef __int64 LONG_PTR;
#else
[code]....
The regularity and frequency of that extolling is an indication of how many people, for whatever reason, don't use the documentation. Some say that I've forgotten what it's like to be a beginner, but I remember using the MSDN documentation as a beginner. I remember that I couldn't always find what I needed and I also remember that I didn't always understand what I found. More importantly, I remember that that didn't stop me using it first every time I had an issue and I also remember getting better at using it over time. So, I'm genuinely interested to know, if you don't use the MSDN documentation?
View 39 Repliesthere are tools (SandCastle?) that can generate an MSDN-like documentation (HTML files) from your source code by using the XML comments above members. I am looking to generate a similar documentation (bunch of HTML files that one can link through), except not from XML comments but completely manually.It is for a custom scripting language, I have to document the available functions, and it would be great if I could do that in this common documentation style. Since there are no XML comments to generate the documentation from (the documentation is for the scripting language itself, not for my source code of the scripting language?
What I'm looking for in detail is a way to generate these documentation files by simply supplying this information for each function:
- Namespace (just the name and maybe a description)
- Function name + description + return type
- List of arguments and their types
from this I would to generate a document where one can first view all the Namespaces, click one (they are supposed to be links) and view all the functions in that namespace. Then you can click on a function name and view its description and list of arguments for that function.In other words: just like these automatic tools do, except now I want to supply this information manually.
While writing this I thought of one way that I might be able to do it: just create namespaces and functions in actual VB code (corresponding to the scripting language functions) and generate the documentation from that, but
1) That seems a little contrived especially if a better tool is available,
2) I would be in trouble with the types of functions and arguments, since they would have to be .NET types and not the types that my scripting language supports.
I don't find the properties and events for this class, and i don't know where in msdn library, is possible to find the documentation.
View 2 RepliesI'm working on my final assignment for my Visual Basic class, and the last assignment is to create a program which stores CD collection information. It works fine, but the task is to create a structure for the input information and use it in the Add buttons click event code.I'm not asking to have my homework done for me, but i'd like some advice on where I should declare the structure and how. Everywhere I try and declare it, it ends up closing that particular sub procedure or section. I've tried looking up plenty of help sites to learn about structures, but sadly they and the book are both very vague. The instructor also mentioned padding each entry, but that I'm pretty sure I know how to do
[Code]...
Is there any way of adding a control to a container within a structure declaration in VB .NET?
What I would really like to do is:
[Code]...
But this doesn't work in VB .NET. Is there anyway of achieving the same thing?
I get a message, "The MSDN collection does not exist. reinstall MSDN." When I try to access any of the HELP features of Visual Basic 6.0. I do not have an install disc for this. Is there a download or a place I can get this?
View 7 RepliesI'm using Visual Studios 2008 to write a small program that writes to a file. The program works fine until I run it on my server at work, where for some reason it adds a "next line" (like vbCrLf command) at the end of the second line in the .txt file. [code]
View 1 RepliesI got problem regarding declaration of dynamic runtime array declaration Here is my code
[Code]...
I was wondering, what are the benefits of having a variety of different data types available to programmers?
View 1 RepliesI am working on a produce inventory database in my VB Express program. I have a form on the bottom and a spreadsheet at the top. I want to enter all the data in the form and have that data automatically transferred as a group to the spreadshet in the upper part of the page when I press a button.
I know that there's an insert function. I set it up correctly. The problem is that I have to convert the textbox, which contain string data, to the datatype used in the database spreadsheet. HOw do I use CAST or do this?
Here's the function I am using:
Me.TableAdapterManager.InventoryTableAdapter.Insert(IDTextBox.Text, fruitName, unitprice, unitsize, unitIn, unitTransit, unitOut)
Evernything is a string cause the data is coming from a textbox, I need to convert it to the datatypes used in the database.
I need to call a function that expects a DataType as a paremeter. I fail to get the right syntax to specify a datatype (integer, string, single, boolean, etc):
Public Sub AddSetting(ByVal PropertyName As String, ByVal PropertyType As Type, ByVal DefaultValue As String)
Dim p As New SettingsProperty(PropertyName)
p.PropertyType = PropertyType
p.DefaultValue = DefaultValue
[Code] .....
Ever since I moved from VB6 to VB.NET somewhere in 2005, I've been using CType to do casting from one data type to another. I do this because it is simply faster to type, used to exist in VB6 and I do not know why I have to be using DirectCast if there is apparently no difference between them.I use TryCast once in a while because I understand that sometimes casting can fail. I however cannot get the difference between CType and DirectCast.
View 3 RepliesUsing VB.Net and C#.Net.
For Example
Am Using More than one form
If am assigning a variables like this.[code]...
This variables cannot be easily understand for everyone(other programmers).
How to assign a Standard Datatype variables,
Standard Variable Means (Everyone can understandable)
And also How to give a standard name for gridview, text boxes, labels etc.
Changing datatypes of properties of serialized objects?
View 1 RepliesAnyone have any insight on the Big O notation for comparisons for a LINQ Except query using primitive datatypes? I couldn't find anything on google.
View 3 RepliesI defined the following extension of the Date? data type
[Code]...
But when I moved my compiler definition to a separate DLL, I the ToObject method was no longer available from my project even though I had referenced the Class project which now contained the extension. Is this a limitation of the Compiler Extensions? HOw do you get reusability out of them?
It looks like they are converted to regular date types in the generated proxy object.I'd like to optionally pass null values for these dates.Other than switching to WCF (no time to learn it right now), what is the best way to handle this situation. It looks like I also cannot pass NULLABLE date types.
View 1 RepliesPROJECT TYPE: Windows Forms Application
LANGUAGE: Visual Basic
.NET VERSION: 3.5
IDE: Visual Studio 2008
OPTION STRICT: on
OPTION EXPLICIT: ON
I need to populated a ComboBox and a CheckedListBox with a list of the Windows Accounts on the host computer. I also need to the user to be able to apply settings to the users individually. Thirdly, I need to find a way to add a startup registry key in the CURRENT_USER for a different user than the "Current User" (For example: User1 is an Administrator. User2 is a Limited Account [can't modify registry]. User1 needs to add Registry key to User2's "CURRENT_USER". This is a parental control application so the Admin accounts need to be able to access the registry from all users without affecting all users at once. I do not have any code to paste because I still have not the foggiest idea of where to start. I think it probably has something to do with an array (I have no experience with arrays whatsoever) but I am stumped from there. I'm a new, self-taught programmer so I speak idiot at times,
Summary of Questions
1) How do I retrieve a list of Windows Users?
2) How do I populate the objects above with such a list?
3) How do I interact with the items on that list (specific user accounts)?
4) How do I modify another user's CURRENT_USER Registry key?
Module Module1
Public Structure structure1
Public TRANS() As structure2
End Structure
Public Structure structure2
Public X() As Integer
End Structure
End Module
I'm new to VB 2008 after having spent a long time with VB6, so I apologize if this is a stupid question. But I'd really like to have this straightened out.
Let's say I have a pretty large structure that has lots of properties.
Code:
Now say that I want an internal database with about 10 instances of this structure total, describing, say, 10 different products that a store sells. When these values are loaded from a database, they remain totally static. (However, they can be different each time a program loads)
Now say that I have a class. Each instance of this class is a type of that BaseProduct structure. Meaning, each instance of the class pertains to one of the 10 types of products that the store sells. However, this class has additional properties that pertain specifically to each instance, which are not static.
Code:
Now, the problem here is... If I have 200 different transactions, each one contains an instance of BaseProduct. BaseProduct is HUGE, and is largely redundant (only 10 types possible), so I think it's a little silly to include a whole copy of it with EVERY transaction. However, the Transaction class really needs information regarding the base product it pertains to. Is there a way to, instead of declaring a New BaseProduct in the Transaction class, to simply make one of the properties of the Transaction class a pointer to a BaseProduct variable?
In VB6, I would accomplish this by making a BaseProduct(10) array, and then giving each Transaction an ID number referring to an entry in that array. But in VB 2008, using class structure, this is impossible. I can't define the BaseProduct(10) array outside of a class in a namespace, and if I define it in the actual application's form, then the class loses modularity since it relies on the application that's using it.
I am trying to communicate with an external device and i am trying to send a byte array to the external device via sockets but i am always getting a response the message size is too small so i am not sure what i have done wrong. Between the data type there should be no alignment present and all numbers are represented in little endian format. The char array is not null terminated as mentioned in the protocol specifications.
I have to send data based on a struct that embeds 2 other struct. So here's my vb.net code for the struct used to convert to byte array and the sending part.
Public Structure MESSAGETYPE_OIP_Login
Dim Header() As COMMANDHEADER
Dim UserName() As PSTRING
[Code]....
I'm experiencing a problem with the following c-structure:
typedef struct tagTEXTUREPROP
{
DWORD dwSize;
[Code].....
The Marshal.SizeOf obviously calculates a size of 76 and it works with the DLL function, but it leaves me with some bad feelings.
I'm having a problem that's driving me crazy; I can't understand how to convert the XML structure into a class structure (that I want to use to hydrate a XML document).
The XML document looks like this:
xml
<?xml version="1.0" encoding="utf-8"?>
<artists xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns="http://www.spotify.com/ns/music/1">
[code]....
I want to make a structure within a structure. Basically it will appear like this:
Structure ID
dim CardType as string
im CardCode as string
[code]......
In Vb.net I am trying to assign an array of structure to another array of same structure[code]...
View 2 RepliesWhat are medals in msdn ? Who are MVPs ?farizrahman4u
View 1 Replieshow can i convert these datatypes: date to string and integer to string.Because it must be in a string datatype when I display it in a datetimepicker and textbox.
View 3 RepliesI just recently installed VB 6.0, and I went to install MSDN Library (April 2000 Release of the MSDN Library)afterward. I was missing CD 2, but installed the other 2 CDs. It appears CD2 is the primary one for VB. Do you know how I can get this specific CD --OR-- can I just download a newer version (i have been looking for both on MSDN with no luck)?
View 2 RepliesMSDN online looks completely different. It used to be a set of collapsible controls. Does it still contain the same content? Is it under construction due to the release of 2010?
View 6 Replies