| How to add a global group to a local group on a list of machines |
|
 |
Index ‹ Visual Studio ‹ Visual Basic
|
- Previous
- 1
- Visual Basic [VB] >> System.Diagnostics.ProcessHello All,
I have posted previously regarding the above assembly. I have created a 2
classes and an interface to mask the complexities of using the above
assembly. The purpose of the interface is to allow one to create any UI
that they wish to search for files using the program find.exe. All the user
has to do is implement the interface and instantiate the FileFinderControl.
Class: ProcessController (has two threads that montor StandardOutput and
StandardError, and two delegates and events to pass this information on to
the FileFinderControl which manipulates the IFileFinder Interface)
Class: FileFinderControl (manages the interactions between the
System.Diagnostic.Process and the IFileFinder Interface)
Interface IFileFinder (abstracts the UI implementation so multiple UIs can
be created)
My problem is that I cannot get this architecture to run without the
ProcessController stepping on memory and causing a fault. I can implement
System.Diagnostics.Process seperately but only within my GUI. In the GUI
implementation I use the Invoke method to communicate across the thread but
it does not work when implemented through an interface.
Any Suggestions?
Thanks,
Dan
- 2
- Visual Basic [VB] >> Weird bugHi All
I have this weird bug in the code below:
Dim temp As String = oAction.ActionType.ToString
For Each ctl As Control In Me.Controls
If ctl.Tag IsNot Nothing Then
ctl.Visible = ctl.Tag.ToString.Contains(temp) '<------error here
ctl.Enabled = ctl.Visible
End If
Next
The error is: IndexOutOfRangeException (Index -1 does not have a value)
I have a number of controls on the form that are visible depending on the
value I put in the tag property
- 3
- MFC >> Catching a message in the App classHi all,
Is it possible to catch a message (such as WM_TIMER) in the app class?
When I try to do it, the compiler (VC.NET) encounters an error in the
message map entry which is....
error C2440: 'static_cast' : cannot convert from 'void (__thiscall
CivHostApp::* )(UINT)' to 'void (__thiscall CWnd::* )(UINT_PTR)'
Can anyone decipher this...??
Thanks.....
- 4
- MFC >> Resource limit?I am having a really weird issue that I can't figure out...
I am getting a unhandled exception in my application. Also a "a resource is
unavailable..." error. It appears to be related to opening a large number
of resources. I'm not sure.
I have a CDialog derived class that is embedded in a tabbed dialog type
control which is all part of a CFormView. This dialog view has a custom
control/grid that uses CStatic controls for the cells. Each instance of
the class creates around 250 CStatic controls. This has always worked
well, but recently I modified my code so that more than one of these
CFormViews can be open at a time.
On opening the 6th instance (they all use the same MDI template), the app
blows up. I can't track it down to a single line and I think that's
because it's an application-wide issue.
I don't think it's necessarily a problem with this particular CDialog over
the other ones in the tab dialog view. I think it causes the problem
because it creates so many controls. In fact it's not even this type of
view that is the problem. After opening 5 views, if I open a normal
CDialog that embeds the same grid control it blows. I'm pretty sure the
grid isn't specifically the problem just the source of the problem.
If I debug deep into MFC code it appears the CreateCompatibleDC is failing
in different places.
Is there a limit to the number of controls that can be opened at one time
(that would be odd). Is there a conflict between using the same resource
IDs over and over between views?
I have debugged for hours on this and am baffled. Any clues or direction
would be greatly appreciated!
Thanks much.
Eric
- 5
- Visual Basic >> Wrox Books sample code download siteThis is just an FYI, and to serve as a hit in anybody searching for
hours for Wrox sample code (like I have been).
Wrox Books went bankrupt recently. Their website and about 32 of their
titles were purchased by Wiley Press. Support for those books is still
available at www.wrox.com.
The REST of the books appear to have been purchased by Apress. Sample
code for THOSE Wrox books is available at support.apress.com. Apress
also bought some or all Glasshaus books.
Anyway, in the hope that this will help somebody ...
Here's a list of the books Apress has sample code for (Sorry for the
length - I'm doing it for the Googlers!):
.NET Compact Framework
.NET Enterprise Development in C#: From Design to Deployment
.NET Enterprise Development in VB .NET: From Design to Deployment
A C# Application from Inspiration to Implementation
A Preview of Active Server Pages +
ADO 2.0 Programmer's Reference
ADO 2.1 Programmer's Reference
ADO 2.6 Programmer's Reference
ADO.NET Programmer's Reference
ADSI ASP Programmer's Reference
Advanced .NET Programming
Alex Homer's Professional ASP Web Techniques
Apache 2 Module Writer's Handbook
Apache Tomcat Performance Handbook
Apache Tomcat Security Handbook
Apache Tomcat Security Handbook
ASP 3.0 Programmer's Reference
ASP Programmer's Reference
ASP Programmer's Resource Kit
ASP to ASP.NET Migration Handbook: Concepts and Strategies for
Successful Migration
ASP.NET 1.0 Namespace Reference with C#
ASP.NET 1.0 Namespace Reference with VB.NET
ASP.NET Components Toolkit
ASP.NET Distributed Data Applications
ASP.NET E-Commerce Programming; Problem - Design - Solution
ASP.NET Mobile Controls Tutorial Guide
ASP.NET Programmer's Reference
ASP.NET Security
Assembly Language MasterClass
ATL COM Programmer's Reference
ATL Programmer's Resource Kit
AutoCAD 2000 VBA Programmer's Reference
AXIS Handbook
Axis: The Next Generation of Java SOAP
BEA WebLogic 7.0 Application Server Deployment and Administration
Handbook
Beginner's Guide to Access 2.0
Beginner's Guide to Access 95
Beginner's Guide to C++
Beginner's Guide to OOP Using C++
Beginner's Guide to QBasic
Beginner's Guide to Turbo Pascal
Beginner's Guide to Visual Basic 3.0
Beginner's Guide to Visual Basic 4.0
Beginner's Guide to Windows Programming with Turbo C++
Beginning .NET Web Services with C#
Beginning .NET Web Services with VB.NET
Beginning Access 95 VBA Programming
Beginning Access 97 VBA Programming
Beginning Access X VBA
Beginning Active Server Pages 2.0
Beginning ASP .NET 3rd Edition
Beginning ASP .NET E-Commerce
Beginning ASP Databases
Beginning ASP.NET Databases using C#
Beginning ASP.NET using C#
Beginning ASP.NET using VB.NET
Beginning ATL 3 COM Programming
Beginning ATL COM Programming
Beginning C
Beginning C#
Beginning C# Databases
Beginning C# Web Applications with Visual Studio .NET
Beginning C# XML: Essential XML Skills for C# Programmers
Beginning Components for ASP
Beginning Databases with MySQL
Beginning Databases with PostgreSQL
Beginning Delphi 2
Beginning E-Commerce with Visual Basic, ASP, SQL Server 7.0 and MTS
Beginning Excel VBA 2003
Beginning GTK+/GNOME Programming
Beginning J2EE 1.4
Beginning Java
Beginning Java 2
Beginning Java 2 - JDK 1.3 Version
Beginning Java Databases
Beginning Java Networking
Beginning Java Objects
Beginning Java Web Services
Beginning JSP 2.0
Beginning JSP Web Development
Beginning Linux Programming
Beginning Linux Programming 3rd Edition
Beginning MFC COM Programming
Beginning MFC Programming
Beginning Networking
Beginning Object-Oriented Analysis and Design with C++
Beginning Objects with Visual Basic 5
Beginning Oracle Programming
Beginning Perl
Beginning PHP 4 Databases
Beginning PHP 5
Beginning PHP, MySQL and Apache
Beginning Red Hat Linux 8.1
Beginning Site Server
Beginning SQL Programming
Beginning SQL Server 2000 for Visual Basic Developers
Beginning SQL Server 2000 Programming
Beginning VB.NET 2003 3rd Edition
Beginning VB.NET XML:Essential XML Skills for VB.NET Programmers
Beginning Visual Basic .NET
- 6
- Mcse >> Puntuaciones minimas.Hola a todos.
Tengo intencion de comenzar mi andadura en el duro camino MCSE 2003, pero
antes de nada me gustaria tomarle el pulso y para ello necesito saber que
puntuaciones minimas se exigen para pasar cada uno de los examenes.
¿hay algun tanto por ciento estipulado? ¿depende de cada examen?.
Gracias.
- 7
- Visual Studio C++ >> LNK 2020 error ...Hi,
I got the following link error in my release build:
-----------------------------------------
Linking...
LINK : error LNK2020: unresolved token (0A000020) _CrtDbgReport
LINK : fatal error LNK1120: 1 unresolved externals
-----------------------------------------
KB 323307 is not helpful to me, because I couldn't find "_CrtDbgReport" in my code using search. It must be from somewhere else, such as dlls, lib files, etc. But how can I track it down? How to fix it?
The debug build is ok.
Thanks,
Peter
- 8
- Mcse >> OT: Beer thirtyI'm ducking out a few minutes early, so Lumbergh can't ask me to work
tomorrow. So 5:20 ET is beer-thirty for me. Enjoy your weekends...see you
Monday.
--
KB - MCNGP "silent thug" #26
first initial last name AT hotmail DOT com
- 9
- Visual Studio C++ >> C++: mutable keywordHi All,
Mutable keyword can be used only with class and structure data members, that
are 'non-static' and 'non-const'.
Can someone tell me what is the reason behind this constraint?
Why 'static' and 'const' data members cannot be made mutable?
Thanks in advance
- 10
- Visual Basic >> Use XSD to get data types for XML elementsI am using VB6.
I am receiving an XML file and an XSD file.
I understand I can use the XSD file to validate the XML file, but is
it also possible for me to use the XSD file to give me the data types
of the elements in the XML file?
When processing the XML file, I know the name and the value (e.g.
<FirstName>Richard</FirstName>, <Amount>1.23</Amount>).
The XSD has the datatypes defined for each element.
What I want to do is, while processing the XML file in my VB program,
also be able to get the data type for that element.
Thanks for any help.
RichardF
- 11
- Visual Studio C++ >> self debug informationHello,
I've implemented the following things on another platform, and I'd
like to know whether they could be done with VC++:
- when an uncaught c++ exception occurs, the program prints its
type, and if it's derived from my own exception, it prints an exception
stacktrace (the stacktrace stored in the exception object) - like in java.
Is there anything like abi::__cxa_current_exception_type()?
- when a program causes general protection fault, division by
zero, etc., the program prints the stacktrace
- these things can be added to an already working program without
serious modifications: only a call to initializeSelfDebug() is needed at
the beginning of main()
The stacktrace contains IP address, source:line information.
These things should be available without Visual Studio installed (VS
isn't installed on the machines of testers/users).
When the program crashes, these things give us a lot of valuable
information instead of the usual "your program crashed-click to OK"
messageboxes.
Thanks,
Geza
ps: I'd like to avoid the
int main() {
try {
original_main();
} catch (MyExc &e) {
e.printStackTrace();
} catch (...) {
print("unknown exception occured");
}
}
because in some scenarios it doesn't work (for example: a dll plugin)
- 12
- Visual Studio C++ >> Class InitializationDumb question,
Does C++ auto-initialize (zero out) data members in a class? Only Class
based members? arrays? or should I always initialize them in the
constructor? I mean I always do and have, but at times it becomes
tedious and I always wonder if it is truly necessary, so I am just asking to
finally get it out of my head! <g>
Many times I'll just create a struct with all my class data members
(non-class based struct fields) and then just have a ZeroMemory() in my
constructor. This way I don't have to worry about initialization when I add
new fields to the struct. But if I need a CString in the struct, I have to
remember that I can't use ZeroMemory on the struct. So that's part of the
reason why I am asking.
Thanks
- 13
- Visual Basic >> MSDN Help File problemHi guys, My MSDN VB help was working before but know, when
I'm trying to run it, it comes up with this error
message "Attempting to use an invalid compiled help(.chm)
file" with an OK button.
Thanks.
- 14
- Visual Basic >> Do Not Show Box AgainHi All,
I have a small form that appears at the start of my program that allows the
user to fix certain parameters that are lised in Combo boxes in the main
program before starting. This works OK but appears everytime the program is
first run.
What I would like is for there to be a Check Box that askes the question "Do
not show this box again" and fixes the selected parameters for all time in
the main programs Combo boxes, and does not appear again.
Can this be done?
Best Rgds,
Dave Robinson
- 15
- Visual Basic [VB] >> Reflection and Menu Merging in MDIsWe have an MDI application that looks for forms in which a common interface
has been implemented. We can instantiate the forms and display them as
children of the mdi and use the functionality on them.
The problem is that the menus from the child forms don't show up. They
don't even show up on the
form itself, much less merge with the mdiparent menus
We have changed the modifiers on the menu and on each item in the menu to
public so they can be seen outside the assembly. We have tried not making
the form an mdichild and using it as a stand-alone application (still
instantiated by the mdi, although not as a child). The child form does
appear in the 'windows' list as a child of the mdi.
Is there any way to make available to the mdi, the menu on a child form
instantiated through reflection?
|
| Author |
Message |
JasonIBSL

|
Posted: Wed Sep 17 14:22:35 CDT 2003 |
Top |
Visual Basic >> How to add a global group to a local group on a list of machines
Can someone please show me how to add a global group to a
local group on a machine or a list of machines. I have a
large number of computers I deal with and was really
looking for a way to add global groups to local groups via
script. Any help would be greatly appreciated
Visual Studio90
|
| |
|
| |
 |
Jeff

|
Posted: Wed Sep 17 14:22:35 CDT 2003 |
Top |
Visual Basic >> How to add a global group to a local group on a list of machines
"Joe J" <EMail@HideDomain.com> wrote in message
news:632a01c37d3e$c845fc60$EMail@HideDomain.com...
> Can someone please show me how to add a global group to a
> local group on a machine or a list of machines. I have a
> large number of computers I deal with and was really
> looking for a way to add global groups to local groups via
> script. Any help would be greatly appreciated
Are you trying to add groups to these machines remotely or will you be
running the script on each machine?
|
| |
|
| |
 |
Joe

|
Posted: Thu Sep 18 06:51:42 CDT 2003 |
Top |
Visual Basic >> How to add a global group to a local group on a list of machines
Jeff,
Either/both. Since I know we will need to be touching each
machine this it could be run at the target machine but I
also do see the potential to do this from a central
location. But I guess I am relly focusing on running it at
the target machine. We just have too many oddball machines
that we would not want these groups added too.
Thanks for any help.
>-----Original Message-----
>
>"Joe J" <EMail@HideDomain.com> wrote in message
>news:632a01c37d3e$c845fc60$EMail@HideDomain.com...
>
>> Can someone please show me how to add a global group to
a
>> local group on a machine or a list of machines. I have a
>> large number of computers I deal with and was really
>> looking for a way to add global groups to local groups
via
>> script. Any help would be greatly appreciated
>
>Are you trying to add groups to these machines remotely
or will you be
>running the script on each machine?
>
>
>.
>
|
| |
|
| |
 |
| |
 |
Index ‹ Visual Studio ‹ Visual Basic |
- Next
- 1
- MFC >> how to disable device in 98/meI have used the setup** group functions to realized the disabling of device
in 2k/xp.However the same code can not work in 98/me.Anybody know the
solution?
- 2
- Visual Basic [VB] >> Problem viewing text of hyperlink column in datagridI am trying to retrieve the text within each cell in a datagrid in
order to change the color of each cell, depending on the value within
that cell.
This works fine on the cells that are bound columns, but returns an
empty string for the cells that are hyperlink columns.
Here is the code to retrive the text:
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound
Dim x As Integer
For x = 0 To e.Item.Cells.Count - 1
Response.Write(e.Item.Cells(x).Text)
Next
End Sub
I have also tried, which gives me the error:
"Specified argument was out of the range of valid values. Parameter
name: index
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Specified
argument was out of the range of valid values. Parameter name: index
Source Error:
Line 144: Dim H1 As HyperLink
Line 145: For x = 0 To e.Item.Cells.Count - 1
Line 146: H1 = e.Item.Cells(8).Controls(1)
Line 147: Response.Write(H1.Text)
Line 148: Next"
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound
Dim x As Integer
Dim H1 As HyperLink
For x = 0 To e.Item.Cells.Count - 1
H1 = e.Item.Cells(8).Controls(1)
Response.Write(H1.Text)
Next
End Sub
This is how I am creating the datagrid:
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
Dim strSql As String = "exec dbo.uspSummaryMatrix"
Dim strCnn As String = "data source=xxxx;integrated
security=false;initial catalog=COPS;uid=xxxx;pwd=xxxx"
objCnn = New SqlConnection(strCnn)
objCmd = New SqlCommand
objCmd.CommandText = "dbo.uspSummaryMatrix"
objCmd.CommandType = CommandType.StoredProcedure
objCmd.Connection = objCnn
objCmd.Parameters.Add(New SqlParameter("@ItemID",
System.Data.SqlDbType.VarChar, 255))
objCmd.Parameters("@ItemID").Value = Request.QueryString("ID")
objCnn.Open()
Dim dReader As SqlDataReader
dReader = Nothing
dReader = objCmd.ExecuteReader()
Dim i As Integer
Dim count As Integer
count = 0
DataGrid1.GridLines = GridLines.Both
DataGrid1.AllowSorting = True
DataGrid1.BorderColor = Color.SlateGray
DataGrid1.BorderStyle = BorderStyle.Solid
DataGrid1.ShowHeader = True
DataGrid1.AutoGenerateColumns = False
DataGrid1.BackColor = Color.White
DataGrid1.AlternatingItemStyle.BackColor = Color.LightGray
DataGrid1.ItemStyle.ForeColor = Color.DarkSlateBlue
DataGrid1.ItemStyle.BackColor = Color.White
DataGrid1.HeaderStyle.Font.Bold = True
DataGrid1.HeaderStyle.ForeColor = Color.White
DataGrid1.HeaderStyle.BackColor = Color.DarkSlateBlue
DataGrid1.Width = Unit.Percentage(100)
DataGrid1.CellPadding = 2
Dim datagridcol
Dim strcolor As String
Do While dReader.Read
If count = 0 Then
For i = 0 To dReader.FieldCount - 1
If InStr(dReader.GetName(i), "container") Then
datagridcol = New BoundColumn
datagridcol.headertext =
Replace(dReader.GetName(i), "c", "C")
datagridcol.datafield = dReader.GetName(i)
DataGrid1.Columns.Add(datagridcol)
End If
If InStr(dReader.GetName(i), "Word") Then
datagridcol = New HyperLinkColumn
datagridcol.HeaderText =
Replace(dReader.GetName(i), "Word", "")
datagridcol.DatatextField = dReader.GetName(i)
End If
If InStr(dReader.GetName(i), "Link") Then
datagridcol.datanavigateurlfield =
dReader.GetName(i)
datagridcol.datanavigateurlformatstring =
"UsageDocuments2.aspx?ID={0}"
datagridcol.target = "iframedocument"
DataGrid1.Columns.Add(datagridcol)
End If
Next
End If
count = count + 1
Loop
dReader.Close()
objDataAdapter = New SqlDataAdapter(objCmd)
objDataSet = New DataSet
objDataView = New DataView
objDataAdapter.Fill(objDataSet)
objDataView.Table = objDataSet.Tables(0)
DataGrid1.DataSource = objDataView
DataGrid1.DataBind()
objCnn.Close()
End Sub
I have also considered creating a template column with a hyperlink
inside the template, but I'm not too sure how to do this or access the
text value within the template column.
Any advice or help is greatly appreciated!
Thank you in advance!
Jill
- 3
- Visual Studio C++ >> MSXML.DLLHello,
I have a problem DLL version of MSXML. In my application, I have the
following statements
#import <msxml.dll> named_guids
using namespace MSXML;
I create the instance using CoCreateInstance and use the functionality etc.
etc.
On one of my customer m/c I got an errror like "CLASS_E_NOAGGREGATION". I
was shipping msxml.dll and later I found that msxml3.dll msxml3a.dll
msxml3r.dll are required.
Can anyone explain this?. though I import msxml.dll but still the appln
neads other dlls.
Thanks
Subhash
- 4
- Visual Basic [VB] >> What Kind of Box is This???I saw a program with a (listBox, comboBox, richTextBox, ???) box that
had different lines and colors.
Line 1 blue
Lines 2-5 red
Line 6 green, etc.
and graphic check-marks of different colors.
...with the standard gray adjustable column headings at the top.
Could someone point me to the box type and how to do this?
- 5
- Visual Studio C++ >> #import extensionIve got a load of code from an old unix box which I need to port to VC,
unfortunatly it uses #import to ensure single inclusion of header files
(instead of #include). I dont really fancy changing all the #imports to
#includes and adding #define inclusion protection.
After looking at the VC documentation for #import I was wondering, can I
make a simple type library that would allow me to do
#import "myheaderfile.h"
And which would do the same as a #include with #pragma (once) inside ?
Rich
- 6
- Visual Basic [VB] >> Trying to get subset of data in a gridI am using VB.net Ent Arch 2003.
I have a dataset that was made through the wizard to create a Windows Data
Form
I have a DataGrid to show/edit the table from my DataSet.
I want to:
Be able to choose the subset of data from the table and then have that
presented in the grid while still using the same update and cancel routines
that the wizard provided.
I used to program in VB 3.0-6.0 and I am just having a little trouble
getting my head around how the XML datasets work... Any links and / or
examples of how to solve the above issue would be greatly appreciated.
- 7
- MFC >> some questions.. extern "C" and cleanupHi.
2 questions.. if this is not the right group please advise and I'll
mend my ways.
I'm trying to write a dll that will be accessible from borland and
other applications.
1 - does anyone recall/know if there are differences between the
caller and the callee cleaning up the stack between compilers, or is
this specified by the language and more of a language difference than
a compiler difference?
2 - does anyone have a sample of a dll that exports extern "C"
functions I could use as a basic template? I'm trying to figure out
the right place to put headers etc.
3 - if the dll is to be used by other compilers and/or languages, do I
need to setup some sort of def file or something?
thanks
Jeff
- 8
- Visual Basic >> Anyone have the SSPP32.DLL file for SSDBGrid ?I have all files except the sspp32.dll file to open the property pages...
...still using the DataWidgets 2.0 in VB6 from Sheridan, but lost this file
when I changed computer.
If you have it (should be stored in the system32 map), please mail it to me,
or the group.
My mail is: noren_hans @ hot Mail. com (remove spaces)
/Hans
- 9
- VB Scripts >> vbscript giving wrong day of the week.I put the date on my computer to Wednseday 8/25/04 and when I run this script it gives me the correct date of 8/25/04 but it says that the day of the week is Friday. Here are the results for the days of the week that I get. I just do not understand why this is not working right and giving me the correct date.
Date run on Day returned
8/25/04 Wednesday 8/25/04 Friday
8/26/04 Thursday 8/26/04 Tuesday
8/27/04 Friday 8/27/04 Saturday
8/28/04 Saturday 8/28/04 Wednesday
8/29/04 Sunday 8/29/04 Sunday This one is correct.
8/30/04 Monday 8/30/04 Thursday
8/31/04 Tuesday 8/31/04 Monday
Here is the script I am running. Any help with this script would be appreciated.
dim dte1, mth, dy1, yer, dte2, dy2
mth1 = DatePart("m",Date -2)
mth2 = DatePart("m",Date)
dy1 = DatePart("d",Date -2)
dy2 = DatePart("d",Date)
yer1 = DatePart("yyyy",Date -2)
yer2 = DatePart("yyyy",Date)
dte1 = "" & mth1 & "/" & dy1 & "/" & yer1 & ""
dte2 = "" & mth2 & "/" & dy2 & "/" & yer2 & ""
if vbMonday = weekday(CDate(dte2), vbMonday) Then
MsgBox dte2 & " It is Monday"
end if
if vbTuesday = weekday(CDate(dte2), vbTuesday) Then
MsgBox dte2 & " It is Tuesday"
end if
if vbWednesday = weekday(CDate(dte2), vbWednesday) Then
MsgBox dte2 & " It is Wednesday"
end if
if vbThursday = weekday(CDate(dte2), vbThursday) Then
MsgBox dte2 & " It is Thursday"
End if
if vbFriday = weekday(CDate(dte2), vbFriday) Then
MsgBox dte2 & " It is Friday"
End If
if vbSaturday = weekday(CDate(dte2), vbSaturday) Then
MsgBox dte2 & " It is Saturday"
End If
if vbSunday = weekday(CDate(dte2), vbSunday) Then
MsgBox dte2 & " It is Sunday"
End If
Thanks,
John
- 10
- MFC >> Help with TestHi,
I am trying to complete a test in MFC (which I am not very familiar with).
Any help would be greatly appreciated!!!!
Rules
· Create a grid of 20 Columns by 50 rows. Marks will be deducted
for using the Microsoft Flexgrid control.
· Each cell in the grid must display a random value between 1 and
999 inclusive.
· Each cell in the grid must allow for a threshold value to be set.
· If a threshold value has been set for a given cell, the cell's
background colour should adhere to the following conditions:
If the random value in the cell is...
§ Below the threshold value - background colour of cell changes
to RED
§ Equal to the threshold value - background colour of cell
changes to GREEN
§ Above the threshold value - background colour of cell changes
to YELLOW
· The randomly generated numbers displayed in the cells must
refresh every 5 seconds.
· The application must also have the ability to switch the refresh
ON/OFF
· The application must also allow for the font name and size for
the values displayed in the cell to be configurable.
- 11
- Visual Studio C++ >> reversing bit orderHi folks -
I'm writing some code for a checksum algorithm and I need to reverse the
order of bits in an unsigned char array, in 4-bit chunks (half byte, or
nibble).
Example.. the array contains BYTE data:
0001 0110, 0000 0010, 1000 0000
0x16, 0x02, 0x80
Each nibble gets reversed:
1000 0110, 0000 0100, 0001 0000
0x86, 0x04, 0x10
Each nibble will then be added and the results become a checksum nibble.
I can do this brute force, one bit at a time, but I'm hoping someone out
there will recognize a possible elegant solution. There will always be 5
bytes (40 bits, 10 nibbles) to deal with.
Any ideas?
Thanks.
- 12
- Visual Basic [VB] >> vb.net 2008 problem writing to sql 2005 express databaseHi
I am trying to write to a sql database, but the Update method is not
writing the data to the database.
I can view the data coming into the dataset grid ok and no errors are
generated.
I'm really stuck now :/
Private Sub addrow_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles addrow.Click
Dim NewMeetingRow As meetinginfoDataSet.MeetingRow
NewMeetingRow = MeetinginfoDataSet.Meeting.NewMeetingRow()
newmeetingRow.Course = "new course"
MeetinginfoDataSet.Meeting.Rows.Add(NewMeetingRow)
MeetingBindingSource.EndEdit()
TableAdapterManager.UpdateAll(MeetinginfoDataSet)
End Sub
is there something missing here?
thanks ..
PK..
- 13
- Visual Basic [VB] >> Q: Parent Child Update ProblemHi Everybody
I was wondering if anybody could help me with something that has been
bothering me for some time. Basically, it is a problem I encountered some
time ago with DataSets. I found a solution (which I will refer to later) but
I have a gut feeling that there must be an easier way to do it.
In order I can explain the problem, consider the following: Suppose I have a
DataSet which has two tables "Customers" and "Orders". I set up a
relationship between both tables so that a customer can have one or many
orders. This means that "Orders" has a foreign key e.g. FK_Customer which is
copy of the primary key of the corresponding customer row. So, when I add
new orders for a customer, the new rows in the "Orders" table must have the
correct FK_Customer.
This is the problem:
When the "Customer" table is updated to the database, the primary keys of
newly added rows to this table WILL NOT in general be the same when in the
DataSet after being updated. For example, microsoft recommendes that the
primary keys in a disconnected DataSet are negative. This means that when we
come to update the "Orders" table, the values of FK_Customer will not be
correct!
As I mentioned before, I did find a solution to the problem i.e.
http://www.codeproject.com/cs/database/relationaladonet.asp?df=100&forumid=14883&exp=0&select=1587944
but this involves telling the child row which is its parent row (via
SetParentRow) and handling the OnRowUpdated event.
Have I been missing something? It occurs to me that this parent-child
scenario is so frequent that there must be an easier way to deal with the
situation. Has VS2005 added any new funcitonality to deal with it?
Thanks in advance
G
- 14
- Mcse >> 70-220Taking 70-220 in a week, any good suggestions.
Completed the MCSA, working on MCSE, and taking the 70-220 in a week. I'm
reading MS Press' 70-220, doing the QOD, and following the MS Prep. Guide;
any other suggestions on what to expect or to prepare me for the exam is
greatly appreciated.
RBH
MCSA
- 15
- Mcse >> High importance (for me at least jejeje): Audit toolHi all!!!
I am working as System Administrator in a company and i am going to have
an audit next month. The problem is that they want me to have a list
with all files an user can access. I think it is not very common, but
who listen to me???? my boss???? jejeje. So i have to find a solution.
Is there any tool which look through the file system and selecting an
user gives you the files and folders where he/she/it has access?????? or
something like that
Thanks a lot in advance
Diego
|
|
|