
vilmarbr
Membros-
Total de itens
126 -
Registro em
-
Última visita
Tudo que vilmarbr postou
-
Compile error: Only user-defined types defined in public object modules can be coerced to or from a variant or passed to a late-bound functions. Este erro sempre está ocorrendo quando. tento verificar se o array abaixo está vazio: Private Type objTypeGridCompra strNome As String strNomeExibido As String blnVisivel As Boolean intWidth As Integer intPosicao As Integer End Type Private g_arrGridCompra() As objTypeGridCompra Public Sub x() If Not IsEmpty(g_arrGridCompra) Then MsgBox "Está vazio" Else MsgBox "NÃO está vazio" End If End Sub Porém eu já tentei declará-lo num módulo publico (.bas) num módulo objeto (.frm) e não deu certo ;( Como resolvo ?
-
Verificar Se Um Elemento Existe Num Array Ou Collection ?
pergunta respondeu ao vilmarbr de vilmarbr em Visual Basic
Valeu ! :D -
Existe algum outro jeito de verificar se um elemento existe num Array ou Collection que não seja a forma baixo usando manipulação de erros ? 'Exemplo usando array: Dim arrayX Dim erro As Boolean arrayX = Array(1, 2, 85, 63) On Error Resume Next Debug.Print arrayX(10) erro = (Err.Number = 9) If erro Then Debug.Print "ocorreu erro por que não existe este elemento no array" End If []´s,
-
OK, mas eu não tinha outro jeito de fazer, a solução pra quem mais precisar esta aí: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_DEPD_ARQV_FILHO]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1) ALTER TABLE [dbo].[TTR_SPY_DEPD] DROP CONSTRAINT FK_DEPD_ARQV_FILHO ALTER TABLE [dbo].[TTR_SPY_DEPD] ADD CONSTRAINT [FK_DEPD_ARQV_FILHO] FOREIGN KEY ( [COD_SIST_FLH], [COD_MODL_FLH], [COD_ARQV_FLH] ) REFERENCES [dbo].[TTR_SPY_ARQV] ( [COD_SIST], [COD_MODL], [COD_ARQV] ), CONSTRAINT [FK_DEPD_ARQV_PAI] FOREIGN KEY ( [COD_SIST_PAI], [COD_MODL_PAI], [COD_ARQV_PAI] ) REFERENCES [dbo].[TTR_SPY_ARQV] ( [COD_SIST], [COD_MODL], [COD_ARQV] ) GO
-
Oi Pessoal, Eu preciso de criar um Script SQL que faça o seguinte: - Desligue as primarykeys, foreignkeys, enfim desligue as relacionamentos; - Insira dados (isto eu sei); - Religue as primarykeys, foreignkeys, enfim religue as relacionamentos. Favor postar um pequeno exemplo. Obrigado.
-
Instalei o ktorrent p/ FC3 (fedora core 3) e ficou rápido, bem melhor que o BitComet no Windows: ftp://ftp.freshrpms.net/pub/dag/fedora/3/...fc3.rf.i386.rpm
-
Olá, Favor me passar o nome / link para donwload RPM para instalar Cliente torrent que funcione no Metasys 1 (Fedora 2), pois eu procurei na internet e nada achei ainda !!!!!! Grato Vilmar
-
Video downloader para Linux... alguém conhece algum que baixe vídeos do Youtube, Google Video, Yahoo Video, etc..., tipo aquele VDownloader para Windows ? Eu uso Metasys(Fedora 2). Vlw ;) Vilmar
-
Melhor usar emule (amule, dreamule, etc..) ou bittorrent para baixar arquivos grandes, e por quê ? Ou afinal de contas, dá na mesma usar qualquer um dos dois P2P ?
-
Ok, funcionou ! Tks ;)
-
Só funcionou via terminal: sh meu_script.sh Dando cliques no meu_script.sh nada ocorreu ;( #!/bin/sh # teste echo teste vilmar rmdir vilmar_teste mkdir vilmar_teste echo fim teste Tentei "abrir com terminal" o meu_script.sh , mas ele não foi executado !
-
Depois que eu instalei o VMware Player 2.0 http://www.vmware.com/products/player/ , meus problemas acabaram !!
-
Só clicar no ícone de maximizar ou pressionar CTRL + ALT + ENTER , apenas deixa a VM maximizada. A única forma que encontrei dela ficar em fullscreen foi esta: - no boot do S.O. na VM maximizar a janela que aí ficou fullscreen; mas ao voltar ao S.O. hospedeiro (linux), não volta mais a ficar em fullscreen. No M$-Virtual PC 2004 basta pressionar CTRL + ALT DIREITA + ENTER que fica em fullscreen, e além do mais o ponteiro do mouse "passeia" de um lado para o outro PC Hóspede e PC Hospedeiro, sem precisar pressionar CTRL + ALT nem CTRL + G (ou clique mouse botão esquerdo). Enfim, tem como configurar estas benfeitorias no VMWare ?
-
Como forçar VMPlayer ficar em modo fullscreen? Eu já fuçei em todas as opções disponíveis em "Preferências", mas o máximo que eu consigo é deixá-lo maximizado, fato que atrapalha, pois parte da tela não fica visível, precisando digitar CTRL + ALT e acertar a posição pelas barras de rolagem do VMPlayer ;( Obs.: Eu uso metasys linux 1 (fedora 2)
-
O problema estava nisto: - Eu compartilhar uma pasta de usuário /home/vsoliveira/publico_linux ao invés de uma pasta fora deste diretório /publico_linux , além de ter adicionado também. o mesmo usuário do windows no linux e no samba. Valeu pessoal ;)
-
Depois que eu coloquei as duas máquinas no mesmo grupo, o PC Windows passou a enxergar o PC Linux, mas o PC Windows não consegue ler o compartillhamento. Dá este erro: \\fsbo_linux\publico_linux não está acessível. Talvez você não tenha permissão de acesso. Ao tentar adicionar usuário do windows no samba, deu esse erro: Failed to initialise SAM_ACCOUNT for user fsboliveira. Does this user exist in the UNIX password database ? Failed to modify password entry for user fsboliveira Eu consegui adicionar os usuários do Linux no Samba, inclusive, até usei a mesma senha, mas o Linux não acessa o diretório samba, dá este erro: 24778: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name) SMB connection failed Meu smb.conf está assim, conforme abaixo. Dá para tirar muita coisa dele ? Tem como deixar como autenticação anônima, igual um site FTP ? Muito obrigado ! Vilmar #smb.conf #======================= Global Settings ===================================== [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = GRUPO # server string is the equivalent of the NT Description field server string = Micro Linux # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the "loopback" interface. For more examples of the syntax see # the smb.conf man page ; hosts allow = 192.168.71. 192.168.154. 127. # if you want to automatically load your printer list rather # than setting them up individually then you'll need this printcap name = /etc/printcap # It should not be necessary to spell out the print system type unless # yours is non-standard. Currently supported print systems include: # bsd, sysv, plp, lprng, aix, hpux, qnx ; printing = cups # This option tells cups that the data has already been rasterized cups options = raw # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user "nobody" is used guest account = nobody # Lamarque 17/01/2005: necess�io para o Windows XP poder imprimir neste samba. printer admin = nobody # this tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/%m.log # all log information in one file # log file = /var/log/samba/smbd.log # Put a capping on the size of the log files (in Kb). max log size = 50 # Security mode. Most people will want user level security. See # security_level.txt for details. security = share # Use password server option only with security = server ; password server = <NT-Server-Name> # Password Level allows matching of _n_ characters of the password for # all combinations of upper and lower case. ; password level = 8 ; username level = 8 # You may wish to use password encryption. Please read # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. # Do not enable this option unless you have read those documents ; encrypt passwords = yes ; smb passwd file = /etc/samba/smbpasswd # The following are needed to allow password changing from Windows to # update the Linux system password also. # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. # NOTE2: You do NOT need these to allow workstations to change only # the encrypted SMB passwords. They allow the Unix password # to be kept in sync with the SMB password. ; unix password sync = Yes ; passwd program = /usr/bin/passwd %u ; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* # Unix users can map to different SMB User names ; username map = /etc/samba/smbusers # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ; include = /etc/samba/smb.conf.%m # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them # here. See the man page for details. ; interfaces = 192.168.71.1/24 192.168.154.1/24 # Configure remote browse list synchronisation here # request announcement to, or browse list sync from: # a specific host or from / to a whole subnet (see below) ; remote browse sync = 192.168.71.1 192.168.154.1 # Cause this host to announce itself to local subnets here ; remote announce = 192.168.71.1 192.168.154.1 # Browser Control Options: # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply ; local master = no # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable os level = 33 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job domain master = no # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election preferred master = no # Enable this if you want Samba to be a domain logon server for # Windows95 workstations. domain logons = no # if you enable domain logons then you may want a per-machine or # per user logon script # run a specific logon batch file per workstation (machine) ; logon script = %m.bat # run a specific logon batch file per username ; logon script = %U.bat # Where to store roving profiles (only for Win95 and WinNT) # %L substitutes for this servers netbios name, %U is username # You must uncomment the [Profiles] share below ; logon path = \\%L\Profiles\%U # All NetBIOS names must be resolved to IP Addresses # 'Name Resolve Order' allows the named resolution mechanism to be specified # the default order is "host lmhosts wins bcast". "host" means use the unix # system gethostbyname() function call that will use either /etc/hosts OR # DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf # and the /etc/resolv.conf file. "host" therefore is system configuration # dependant. This parameter is most often of use to prevent DNS lookups # in order to resolve NetBIOS names to IP Addresses. Use with care! # The example below excludes use of name resolution for machines that are NOT # on the local network segment # - OR - are not deliberately to be known via lmhosts or via WINS. ; name resolve order = wins lmhosts bcast # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server ; wins support = yes # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z # WINS Proxy - Tells Samba to answer name resolution queries on # behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. ; wins proxy = yes # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS nslookups. The built-in default for versions 1.9.17 is yes, # this has been changed in version 1.9.18 to no. dns proxy = no winbind uid = 16777216-33554431 winbind gid = 16777216-33554431 map to guest = Bad User restrict anonymous = no guest ok = yes max protocol = NT ldap ssl = No server signing = Auto case sensitive = no msdfs proxy = no # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] comment = All Printers path = /var/spool/samba # Set public = yes to allow user 'guest account' to print guest ok = yes printable = yes [publico_linux] read only = no comment = Diretório público no Linux path = /home/vsoliveira/publico_linux browseable = yes public = yes writable = yes
-
Então, como eu cadastro o usuário do windows no samba linux? Eu até tentei mapear no windows via linha de comando: net use \\microlinux\compartilhamento * e net use \\... IP ...\compartilhamento * aí me pediu senha e eu coloquei a senha usada no linux. mas deu erro mesmo assim, dizendo que não existia tal caminho de rede. no samba eu apenas deixei configurado as contas do linux na parte de convidado. TKS ;)
-
Sim, mas mesmo assim o Amarok não consegue ler um CD de Áudio. Só mesmo MP3. estou usando mesmo só o Xine para ouvir os CDs de Áudio que eu tenho B) Obrigado.
-
Dúvida sobre o Samba (Linux)? Eu tenho o Samba instalado e configurado em minha máquina Linux. Porém só está sendo possível o Linux enxergar o Windows (//maquina_windows/compartilhamento), o contrário não ocorre, ou seja, o Windows não consegue enxergar o Linux (\\maquina_linux\compartilhamento). Como resolvo este problema ? Obs.: Uso Metasys Desktop 1 (baseado no Fedora 2). Grato. Vilmar
-
Amarok não reproduz cd de áudio no Metasys Linux (baseado no Fedora 2), interface KDE, embora toque mp3 normalmente. Eu já tentei montar: mount /dev/cdrom /kscd Eu já tentei criar um link simbólico: ln -s /dev/cdrom /kscd Mas mesmo assim continua dando msg. de erro: "arquivo ou pasta use o kscd não existe" Já tentei usá-lo com os dois mecanismos de som: - gstreamer engine - arts engine... Mas nem um deles funcionou ;( O XMMS mostrava o progresso das músicas, mas não sai som ;( O xine toca, mas não tem recurso algum de organização, tipo Amarok, Windows Media Player,etc... Como resolvo este problema? Obs.: não achei nada que resolvesse no nas configurações e nem no help !! Tks,
-
Ok, obrigado ! :D
-
Como eu consigo (grátis ou pago) CDs de instalação do Fedora, Kubuntu (e / ou Ubuntu), Kurumin, Suse e Debian, com as versões mais atuais de ambos ? Eu gostaria de instalá-los em caso em máquinas virtuais e avaliar pessoalmente qual é melhor, pois estou afim de trocar o Metasys 1 (baseado no Fedora 2). Obs.: para eu baixar da internet fica complicadíssimo, pois só tenho linha discada em casa ;( Tks ;)
-
Não consigo instalar o pacote amsn-0.96-2.tcl84.x86.package no Metasys Linux!! Já baixei e instalei tudo que ele pediu mas ainda dá erro, conforme abaixo: [root@localhost MyDownloads]# package install amsn-0.96-2.tcl84.x86.package # Preparing package: AMSN MSN client # Checking for Versões da biblioteca C requerida ... passou # Checking for X ... passou # Checking for TCL Scripting Language ... passou # Checking for Tk GUI Toolkit ... falhou # FAIL: Could not find 'Tk GUI Toolkit'. Try using the native package manager fo r Metasys (yum) to install a package with similar name to 'tk'. FAIL: Não foi possível preparar o pacote AMSN MSN client. [root@localhost MyDownloads]# Tentei instlar com yum, mas pediu pra baixar um arquivo do fedora que não existe mais (header.info from Fedora Core 1.1.4). Tem alguma forma de converter este amsn-0.96-2.tcl84.x86.package para .rpm ? Tem alguma outra forma mais fácil de instalá-lo ou o link pra baixar logo um amsn.rpm ? No aguardo..... Obs.: instalei tudo logado com um super usuário. Tks,
-
Fiz um teste no PC de casa e resolveu o problema, pois na pequena VM (http://www.guiadohardware.net/gdhpress/kurumin/kurumin_vm.zip) tem rede instalada e NAT habilitado. Então foi possível acessar a internet via NAT no Windows XP da VMWare, tendo o Metasys Linux como máquina hospedeira.